码迷,mamicode.com
首页 >  
搜索关键字:struct    ( 18973个结果
怎样在osg中动态的设置drawable的最近最远裁剪面
// draw callback that will tweak the far clipping plane just // before rendering a drawable. struct OverrideNearFarValuesCallback : public osg::Drawa....
分类:其他好文   时间:2014-06-28 10:38:52    阅读次数:258
socket为send和recv设置超时时间
linux和windows下用setsockopt设置SO_SNDTIMEO,SO_RCVTIMEO的参数的一点区别 UDP的socket在某些情况:如对方关闭时,本地可能sendto不出去数据,然后recvfrom就会被阻塞,这时就需要设置 这两个参数的值提高程序质量。linux: struct....
分类:其他好文   时间:2014-06-26 00:38:51    阅读次数:504
oj2892(字典树)
一改时间以后WA了,我就知道这题是考字典树,可惜代码怎么也不会敲了,郁闷。#include #include #include typedef struct Node{ int flag;struct Node *next[26];}Node,*Tree;char a[200010][6];int ...
分类:其他好文   时间:2014-06-24 14:31:01    阅读次数:161
LeetCode Validate Binary Search Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:40:33    阅读次数:214
uva 11143
1 #include 2 #include 3 #include 4 #define maxn 5100 5 #include 6 using namespace std; 7 8 struct node 9 { 10 int x,y; 11 int id; 1...
分类:其他好文   时间:2014-06-24 11:04:10    阅读次数:150
Hive 进阶
Hive 桶 分区 map array struct...
分类:其他好文   时间:2014-06-22 21:57:10    阅读次数:184
POJ 3304 Segments(计算几何:直线与线段相交)
POJ 3304 Segments 大意:给你一些线段,找出一条直线能够穿过所有的线段,相交包括端点。 思路:遍历所有的端点,取两个点形成直线,判断直线是否与所有线段相交,如果存在这样的直线,输出Yes,但是注意去重。 struct Point { double x, y; } P[210]; struct Line { Point a, b; } L...
分类:其他好文   时间:2014-06-22 12:06:30    阅读次数:225
zoj-3790-Consecutive Blocks
使用l,r指针游动。 然后使用记录游动过程中的最大值。 我离散化了一下。 #include #include #include #include #include #include using namespace std; #define maxn 110000 mapmp; struct list { int x; int get; int lose; in...
分类:其他好文   时间:2014-06-22 11:52:02    阅读次数:226
C++11中once_flag,call_once实现分析
本文的分析基于llvm的libc++,而不是gun的libstdc++,因为libstdc++的代码里太多宏了,看起来蛋疼。 在多线程编程中,有一个常见的情景是某个任务只需要执行一次。在C++11中提供了很方便的辅助类once_flag,call_once。 声明 首先来看一下once_flag和call_once的声明: struct once_flag { constexpr...
分类:编程语言   时间:2014-06-22 09:40:27    阅读次数:355
C#软件开发实例.私人订制自己的屏幕截图工具(十)在截图中包含鼠标指针形状
在写一此帮助说明类的文档时,截取的图片如果还有鼠标的指针形状,看起来就更直观更友好一些。接下来就讲一下如何在截图中包含鼠标指针形状。上一篇:C#软件开发实例.私人订制自己的屏幕截图工具(九)使用自定义光标,QQ截图时的光标添加结构CURSORINFO:[StructLayout(LayoutKind.Sequential)] struct CURSORINFO { ...
分类:其他好文   时间:2014-06-22 07:19:39    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!