码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
单链表处理注意事项
单链表的节点结构一般如下:struct Node{ int val; Node* next;};在处理单链表的基本操作要注意以下事项:1、记住头节点单链表的每个操作都要从头节点开始。如果函数内头节点发生了改变,比如在头节点之前插入节点,删除头节点,反转链表等,都需要更新头节点...
分类:其他好文   时间:2014-06-27 19:46:49    阅读次数:368
#Leet Code# LRU Cache
语言:C++描述:使用单链表实现,HeadNode是key=-1,value=-1,next=NULL的结点。距离HeadNode近的结点是使用频度最小的Node。 1 struct Node { 2 int key; 3 int value; 4 Node* next; 5...
分类:其他好文   时间:2014-06-27 18:48:42    阅读次数:209
c++ 怎样获取系统时间
c++ 怎样获取系统时间2008-04-28 15:34//方案— 长处:仅使用C标准库;缺点:仅仅能精确到秒级 #include #include int main( void ) { time_t t = time(0); char tmp[64]; strftime( tm...
分类:编程语言   时间:2014-06-27 16:56:27    阅读次数:208
继续畅通工程
http://acm.hdu.edu.cn/showproblem.php?pid=1879#include #include #include #include #include using namespace std;int n,tt;int tx[102],ty[102];struct nod...
分类:其他好文   时间:2014-06-27 00:54:20    阅读次数:233
克鲁斯卡尔(模板题)
http://acm.hdu.edu.cn/showproblem.php?pid=1372以前真二,模板题OJ真奇怪,有时能A有时W,#include #include #include #include using namespace std;struct node{ int x,y,z;...
分类:其他好文   时间:2014-06-26 12:17:50    阅读次数:161
hdu 1728 bfs
#include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 #define mod 1000000007 using namespace std; struct node { int x...
分类:其他好文   时间:2014-06-26 11:48:43    阅读次数:214
hdu 1429 状压bfs
#include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 #define mod 1000000007 using namespace std; struct node { int x...
分类:其他好文   时间:2014-06-26 11:39:45    阅读次数:206
操作系统——linux文件系统初实现
简述:0、ext2格式。1、包括权限管理,精确到角色。2、数据块采用连续分配(离散分配大家来弄吧)。3、为实现间接索引,相信实现了目录,简介索引也不是问题吧。。4、删除目录不支持递归删除。自己写去吧。5、整体结构:6、主要数据结构://超级块struct SuperBlock{ int s_b...
分类:系统相关   时间:2014-06-26 11:18:45    阅读次数:301
解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误
解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误...
分类:其他好文   时间:2014-06-26 08:14:03    阅读次数:260
自学ios:second day Objective-C
oc是c的超集,从c扩展而来,具备面向对象的特性,比如类,消息,单继承。c的部分:数据类型:short,int,long,float,double,char,pointer,struct常用方法:readline()atoi()sizeof()malloc()oc的部分:receiver:classNameOrObjectselector:method消息的传递通过[recei..
分类:移动开发   时间:2014-06-26 06:39:56    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!