#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 13:58:27
阅读次数:
215
原文:http://blog.chinaunix.net/uid-25885064-id-3125167.html#include
#include #include #include #include int get_mac(char* mac){ int sockfd; struct
ifreq...
分类:
编程语言 时间:
2014-05-26 13:52:46
阅读次数:
285
#include #include #include using namespace std;int
n;int vis[10000000];int mode1,mode2;struct node{ int step,status;};void
print(int x){ int tmp...
分类:
其他好文 时间:
2014-05-26 13:50:43
阅读次数:
262
同poj2318! 1 //Accepted 220 KB 0 ms 2 #include 3
#include 4 #include 5 using namespace std; 6 const int MAXN = 1005; 7 struct
node 8 {...
分类:
其他好文 时间:
2014-05-26 12:39:06
阅读次数:
242
只需调用一个函数即可gethostbyname(),gethostbyname()返回对应于给定主机名的包含主机名字和地址信息的hostent结构指针。结构的声明与gethostaddr()中一致。下面是函数原型:
Windows平台下 #include struct hostent FAR *PA...
分类:
系统相关 时间:
2014-05-26 11:27:30
阅读次数:
324
Step 1:WNDCLASStypedef struct _WNDCLASS{ UINT
style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; ...
分类:
编程语言 时间:
2014-05-26 11:02:57
阅读次数:
229
qsort直接排序。 1 #include 2 #include 3 #include 4 5
#define MAXNUM 1000 6 7 typedef struct { 8 int index; 9 double statis;10 }
node_st;11 12 ...
分类:
其他好文 时间:
2014-05-26 10:05:44
阅读次数:
229
1.malloc申请空间不当,导致越界,在不定的情况下崩溃typedef struct
_tagCmsHcInst{。。。。。。}cmsHcInst,*pcmsHcInst;错误:pcmsHcInstinst =
(pcmsHcInst)malloc(sizeof(pcmsHcInst))正确:pc...
分类:
其他好文 时间:
2014-05-26 07:22:58
阅读次数:
163
#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 06:44:29
阅读次数:
390
##################dll.h###################pragma
oncetypedef void (*CALLBACK)(int );typedef struct handleCB{ CALLBACK
t_fun;}stCallBack;static stCallB...
分类:
其他好文 时间:
2014-05-26 06:22:27
阅读次数:
275