码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果
Codeforces Round #195 (Div. 2) A. Vasily the Bear and Triangle
水题,注意数据范围即可#include #include #include using namespace std;typedef pair Point;int main(){ int x,y; cin >> x >>y; Point a,b; if((x>0 && y > ...
分类:其他好文   时间:2014-06-16 10:47:47    阅读次数:226
Enumeration & Structures & Protocl & Extension
【Enumeration and Structures】1、使用toRaw、fromRaw方法可以在原始值之间。注意enum的定义中使用了case。另外要注意switch中的枚举值。 2、struct和class最大的区别在于,struct被传递时,使用的是使用的是copy。 3、枚举变量可以有.....
分类:其他好文   时间:2014-06-13 19:53:46    阅读次数:343
[2013] 链表逆序
题目二:逆序链表输出。题目描述: 将输入的一个单向链表,逆序后输出链表中的值。链表定义如下:typedef struct tagListNode { int value; struct tagListNode *next; }ListNode; 要求实现函数: void converse...
分类:其他好文   时间:2014-06-13 18:35:48    阅读次数:203
Process Hacker源码中的用户态hook的做法
processhacker-code-5632\1.x\trunk\NProcessHacker\hook.htypedef struct _PH_HOOK{ PVOID Function; PVOID Target; BOOLEAN Hooked; CHAR Bytes[5...
分类:其他好文   时间:2014-06-12 18:11:47    阅读次数:216
nsDATA 转结构体
很多时候需要将c,c++形式的struct转换为 NSData来处理。但是怎么转换呢? 假设有这么一个结构体: struct MYINFO { int a; long b; char c; }; struct MYINFO infoStruct; infoSt...
分类:其他好文   时间:2014-06-12 08:48:35    阅读次数:191
第十五章 链表
/**数组与链表的区别:数组易随机访问,链表易插入和删除链表组成:储存数据元素的数据域,储存下一结点地址的指针域链表易于插入与删除lists 的用法?????????????????????*///建立一个图书链表#include#include using namespace std;struct...
分类:其他好文   时间:2014-06-12 06:44:48    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!