码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
经典的MySQL 数据备份校验daemon程序
#vim:tabstop=4shiftwidth=4softtabstop=4 #Copyright2010UnitedStatesGovernmentasrepresentedbythe #AdministratoroftheNationalAeronauticsandSpaceAdministration. #Copyright2011JustinSantaBarbara #AllRightsReserved. #Copyright(c)2010CitrixSystems,Inc. # #Licensed..
分类:数据库   时间:2014-05-27 04:03:25    阅读次数:626
Android-NDK处理用户交互事件
在 android_main(struct android_app* state)函数里面设置输入事件处理函数:state->onInputEvent = &handleInput;//设置输入事件的处理函数,如触摸响应函数介绍:AMotionEvent_getX():以屏幕左上角为原点,是绝对坐标...
分类:移动开发   时间:2014-05-23 09:29:18    阅读次数:585
C经典之12-用链表存1-10的数字---ShinePans
#include #include #include //system(); 这个指令需要用到此头文件 #include //toupper要用到 #include //在内存管理时用到的头文件 void main() { int i; struct ListEntry { int number; struct ListEntry *next; } start, ...
分类:其他好文   时间:2014-05-22 10:51:06    阅读次数:204
leetcode:Insert Sort List
问题描述 对一个单链表进行插入排序,head指向第一个结点。 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */...
分类:其他好文   时间:2014-05-22 10:15:43    阅读次数:233
结构体
结构的定义定义一个结构的一般形式为:struct结构名{成员表列}例如:struct stu{int num;char name[20];int age;}结构类型变量的说明结构体定义并不是定义一个变量,而是定义了一种数据类型,这种类型是你定义的,它可以和语言本身所自有的简单数据类型一样使用(如in...
分类:其他好文   时间:2014-05-22 05:36:40    阅读次数:172
笔试算法题(13):反转链表 & 左旋转字符串
出题:反转链表(递归和非递归解法);分析:有递归跟非递归实现,注意对原始链表头节点的处理,因为其他节点都指向下一个节点,其需要指向NULL;解题: 1 struct Node { 2 int v; 3 Node *next; 4 }; 5 Node* NonRecur...
分类:其他好文   时间:2014-05-22 05:20:04    阅读次数:310
Linus Torvalds 指针
《对话LinusTorvalds:大多黑客甚至连指针都未理解》http://www.csdn.net/article/2013-01-10/2813559-two-star-programming“不懂指针”的开发者代码示例: 1 typedef struct node 2 { 3 ...
分类:其他好文   时间:2014-05-22 04:40:17    阅读次数:245
找出单链表的中间位置指针
需求单链表不可以用下标直接得到中间位置,可以采取一前一后(前面的走2步,后面的走一步)的方式实现。参考代码1 struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} ...
分类:其他好文   时间:2014-05-22 00:52:25    阅读次数:376
POJ2236 wireless network 【并查集水题】
一张图上分布着n台坏了的电脑,并知道它们的坐标。两台修好的电脑如果距离 #include #include #include #include #include #include const int MAXN=111111; const int MAX_N=111111; int n,d; using namespace std; struct po { int x,y; boo...
分类:Web程序   时间:2014-05-21 06:29:47    阅读次数:418
队列的实现
#include#include#includetypedef int Item;typedef struct node* PNode;typedef struct node{ Item data; PNode next;}Node;typedef struct{ PNode fr...
分类:其他好文   时间:2014-05-21 04:20:54    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!