【Enumeration and
Structures】1、使用toRaw、fromRaw方法可以在原始值之间。注意enum的定义中使用了case。另外要注意switch中的枚举值。
2、struct和class最大的区别在于,struct被传递时,使用的是使用的是copy。 3、枚举变量可以有.....
分类:
其他好文 时间:
2014-06-13 19:53:46
阅读次数:
343
题目二:逆序链表输出。题目描述:
将输入的一个单向链表,逆序后输出链表中的值。链表定义如下:typedef struct tagListNode { int value; struct
tagListNode *next; }ListNode; 要求实现函数: void converse...
分类:
其他好文 时间:
2014-06-13 18:35:48
阅读次数:
203
dfs#include #include char Map[16][16];int
mv[16][16];//mv[i][j] == 0 没有被访问//mv[i][j] == 1 已经被访问struct N{int x,y;} ;int
jx[] = { 0,-1, 0, 1};int jy[] =...
分类:
其他好文 时间:
2014-06-13 17:45:35
阅读次数:
263
#include #include int map[51][51][51];int
v[51][51][51];int a,b,c,t11;struct node{ int x,y,z,ans;}q[200001];int
jx[6]={0,0,0,0,-1,1};int jy[6]={0,0...
分类:
其他好文 时间:
2014-06-13 17:10:39
阅读次数:
157
关于ImageMagick ImageMagick (TM)
是一个免费的创建、编辑、合成图片的软件。它可以读取、转换、写入多种格式的图片。图片切割、颜色替换、各种效果的应用,图片的旋转、组合,文本,直线,
多边形,椭圆,曲线,附加到图片伸展旋转。ImageMagick是免费软件:全部源码开放,可....
分类:
其他好文 时间:
2014-06-12 10:27:38
阅读次数:
391
很多时候需要将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