码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
socket编程中最常用的几个数据类型和转换函数
高位字节优先和低位字节优先。Internet上数据以高位字节优先顺序在网络上传输,所以对于在内部是以低位字节优先方式存储数据的机器,在Internet上传输数据时就需要进行转换。第一个结构类型是:struct sockaddr 该类型是用来保存socket信息的structsockaddr{ un....
分类:其他好文   时间:2014-07-18 13:31:18    阅读次数:267
UVA 10763 Foreign Exchange
建立两个数组同时存储原学校与目标学校。分别按优先原学校和优先目标学校排序,一一配对,验查是否可行。 1 #include 2 #include 3 using namespace std; 4 5 struct node { 6 int x,y; 7 }a[500010],b[5000...
分类:其他好文   时间:2014-07-18 12:29:12    阅读次数:171
C++基础学习教程(五)
这一讲我们集中讲解类和他的一些特性.首先我们从自定义一个有理数类来开始. 在C语言中有一个关键字: struct ,用来创建一个结构体类型.但是在C++中这个关键的含义就不仅仅如此了,下面我们可以看下示例: /// Represent a rational number. struct rational { int numerator; ///< numerator gets th...
分类:编程语言   时间:2014-07-18 11:31:36    阅读次数:422
POJ - 1915 Knight Moves
BFS结合队列#include#include#includeusing namespace std;int x,y,l;const int maxn=300+5;int visit[maxn][maxn];struct node{ int xpos; int ypos; int ...
分类:其他好文   时间:2014-07-18 00:11:24    阅读次数:245
事件tou
#define EV_TIMER_RESOLUTION 1 /* 1 msec */#define EV_READ_EVENT EPOLLIN#define EV_WRITE_EVENT EPOLLOUTstruct ev_event;struct ev_timer;typedef void ...
分类:其他好文   时间:2014-07-17 22:37:16    阅读次数:276
HDU 4121 Xiangqi
模拟吧,算是。。。被这个题wa到哭,真是什么都不想说了。。。上代码 1 #include 2 #include 3 using namespace std; 4 5 struct node { 6 int x,y; 7 char c; 8 }q[10]; 9 ...
分类:其他好文   时间:2014-07-17 22:21:32    阅读次数:458
POJ 2243 || HDU 1372:Knight Moves(BFS)
简单搜索 直接代码: #include #include #include #include using namespace std; char a,c; int e,f; int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2}; int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1}; int qq[9][9]; struct node {...
分类:其他好文   时间:2014-07-17 19:05:30    阅读次数:265
ZOJ 1649
这题要用BFS去做,要注意的是’x‘,这里可以有优先队列去做,会很简单;另一个要注意的是,a只有一个,r可能有很多个,所以可以用a去找最接近的r;#include #include #include "string.h"using namespace std;struct step{ int x,y...
分类:其他好文   时间:2014-07-17 18:13:36    阅读次数:180
opennebula kvm 创建VM oned报错日志
Thu Jul 17 10:45:36 2014 [ReM][D]: Req:4720 UID:0 VirtualMachineDeploy result SUCCESS, 12Thu Jul 17 10:45:40 2014 [TM][D]: Message received: LOG I 12 ...
分类:其他好文   时间:2014-07-17 13:31:23    阅读次数:301
结构体 变迁
struct 结构体是由基本数据类型构成、并用一个标识符来命名的各种变量的组合 格式 struct  结构名 {      类型 变量名;      类型 变量名;      ...... }结构变量; 结构名是结构的标识符 结构 typedef  给结构体起别名 结构数组...
分类:其他好文   时间:2014-07-17 10:15:07    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!