摘要:
int main(void){ int a=3,b=4,z=1; printf("%d\n",b/a&~z); return 0;}这里~z的值可不是0哦,在X86CPU里存储单元里,显示为:那... 阅读全文
posted @ 2012-07-07 22:13
wdliming
阅读(154)
评论(0)
推荐(0)
摘要:
int main(void){ int a=3,b=4,z=1; printf("%d\n",b/a&~z); return 0;}这里~z的值可不是0哦,在X86CPU里存储单元里,显示为:那... 阅读全文
posted @ 2012-07-07 22:13
wdliming
阅读(130)
评论(0)
推荐(0)
摘要:
#include #include #define F(X,Y) (X)*(Y)struct s{ int x; int y;}data[2]={{10,100},{20,200}};int main(void)... 阅读全文
posted @ 2012-07-07 21:51
wdliming
阅读(111)
评论(0)
推荐(0)
摘要:
#include #include #define F(X,Y) (X)*(Y)struct s{ int x; int y;}data[2]={{10,100},{20,200}};int main(void)... 阅读全文
posted @ 2012-07-07 21:51
wdliming
阅读(174)
评论(0)
推荐(0)
摘要:
#include #include #include #include using namespace std;int length;void PrintSolutions(int *flag){ for (in... 阅读全文
posted @ 2012-07-07 21:21
wdliming
阅读(118)
评论(0)
推荐(0)
摘要:
#include #include #include #include using namespace std;int length;void PrintSolutions(int *flag){ for (in... 阅读全文
posted @ 2012-07-07 21:21
wdliming
阅读(109)
评论(0)
推荐(0)
摘要:
直接上代码:/*设置两个指针*one、*two都指向单链表的头节点。其中* two的移动速度是*one的2倍。当* two指向末尾节点的时候,*one正好就在中间了。*/#include #include #de... 阅读全文
posted @ 2012-07-07 20:33
wdliming
阅读(173)
评论(0)
推荐(0)
摘要:
直接上代码:/*设置两个指针*one、*two都指向单链表的头节点。其中* two的移动速度是*one的2倍。当* two指向末尾节点的时候,*one正好就在中间了。*/#include #include #de... 阅读全文
posted @ 2012-07-07 20:33
wdliming
阅读(125)
评论(0)
推荐(0)
摘要:
#include #include int main(void){ int i; int j; int a[101]; // 为直观表示,各元素与下标对应,0号元素不用 for (i... 阅读全文
posted @ 2012-07-07 16:31
wdliming
阅读(270)
评论(0)
推荐(0)
摘要:
#include #include int main(void){ int i; int j; int a[101]; // 为直观表示,各元素与下标对应,0号元素不用 for (i... 阅读全文
posted @ 2012-07-07 16:31
wdliming
阅读(188)
评论(0)
推荐(0)
摘要:
摘自:http://blog.csdn.net/hackbuteer1/article/details/6686925题目:如果字符串一的所有字符按其在字符串中的顺序出现在另外一个字符串二中,则字符串一称之为字符... 阅读全文
posted @ 2012-07-07 12:07
wdliming
阅读(160)
评论(0)
推荐(0)
摘要:
摘自:http://blog.csdn.net/hackbuteer1/article/details/6686925题目:如果字符串一的所有字符按其在字符串中的顺序出现在另外一个字符串二中,则字符串一称之为字符... 阅读全文
posted @ 2012-07-07 12:07
wdliming
阅读(126)
评论(0)
推荐(0)
摘要:
这里给出一个例子:A:int (*(*F)(int,int))(int)在cdecl里解释为:declare F as pointer to function (int, int) returning point... 阅读全文
posted @ 2012-07-07 11:39
wdliming
阅读(136)
评论(0)
推荐(0)
摘要:
这里给出一个例子:A:int (*(*F)(int,int))(int)在cdecl里解释为:declare F as pointer to function (int, int) returning point... 阅读全文
posted @ 2012-07-07 11:39
wdliming
阅读(115)
评论(0)
推荐(0)
摘要:
这里有个一个很好的C语言的声明解释在线工具——cdecl,就是你输入一个C语言的声明和定义,他会自动用英语解释声明或定义的涵义例:float(**def)[10]解释为:declare def as pointe... 阅读全文
posted @ 2012-07-07 11:03
wdliming
阅读(172)
评论(0)
推荐(0)
摘要:
这里有个一个很好的C语言的声明解释在线工具——cdecl,就是你输入一个C语言的声明和定义,他会自动用英语解释声明或定义的涵义 例:float(**def)[10] 解释为:declare def as pointer to pointer to array 10 of float 这里借个图: 漂 阅读全文
posted @ 2012-07-07 11:03
wdliming
阅读(236)
评论(0)
推荐(0)
摘要:
在网上看到一边博文,这里转载之:http://blog.sina.com.cn/s/blog_5f0d72800100hesf.html当使用带有const的指针时其实有两种意思。一种指的是你不能修改指针本身的内... 阅读全文
posted @ 2012-07-07 10:56
wdliming
阅读(96)
评论(0)
推荐(0)
摘要:
在网上看到一边博文,这里转载之:http://blog.sina.com.cn/s/blog_5f0d72800100hesf.html当使用带有const的指针时其实有两种意思。一种指的是你不能修改指针本身的内... 阅读全文
posted @ 2012-07-07 10:56
wdliming
阅读(92)
评论(0)
推荐(0)
摘要:
unsigned char *test(void){ unsigned char i=0; int j=1000; char *p=NULL; for(i=0;i<j;i++) strncpy(p,"hel... 阅读全文
posted @ 2012-07-07 10:46
wdliming
阅读(114)
评论(0)
推荐(0)
摘要:
unsigned char *test(void){ unsigned char i=0; int j=1000; char *p=NULL; for(i=0;i<j;i++) strncpy(p,"hel... 阅读全文
posted @ 2012-07-07 10:46
wdliming
阅读(232)
评论(0)
推荐(0)
摘要:
#include int main(void){ int a[] = {6,7,8,9,10}; int *ptr = a; *(ptr++) += 123; printf("%d, %d\n",*ptr, *(... 阅读全文
posted @ 2012-07-07 10:35
wdliming
阅读(110)
评论(0)
推荐(0)
摘要:
#include int main(void){ int a[] = {6,7,8,9,10}; int *ptr = a; *(ptr++) += 123; printf("%d, %d\n",*ptr, *(... 阅读全文
posted @ 2012-07-07 10:35
wdliming
阅读(142)
评论(0)
推荐(0)

浙公网安备 33010602011771号