码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
怎样在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
c语言的结构体字节数统计
struct结构体的字节数 等于 结构体中最大类型的字节数的倍数。如:typedef struct Student{ short id; //2个字节 char name[15]; //1*15个字节 int age; //4个字节 char num; //1个字节} Student;总共28个字节...
分类:编程语言   时间:2014-06-25 21:13:46    阅读次数:235
LeetCode Linked List Cycle
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:其他好文   时间:2014-06-25 21:00:45    阅读次数:200
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
LeetCode Balanced Binary Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:32:40    阅读次数:157
浅析单例模式
单例模式是设计模式中最简单的形式之一。这一模式的目的是使得类的一个对象成为系统中的唯一实例。单例代码如下: private static JobManager _instance; private static Object padlock = new Object(); public stat.....
分类:其他好文   时间:2014-06-24 12:39:57    阅读次数:181
c++ 接口
c++ primer说公有的函数就是接口现在项目中struct I_XX{ virtual void test() = 0;};这个test才被称作接口,我就不知道什么到底是接口,貌似这种说靠谱点接口有不同层次的定义, 比如C++通常把类的公用成员函数函数说成接口; 比如,我们通常把Win API....
分类:编程语言   时间:2014-06-24 11:53:43    阅读次数:206
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!