摘要: 链接:LIS -> 矩形造塔 阅读全文
posted @ 2013-03-20 14:43 zhang1107 阅读(83) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com/reference/cctype/isalnumView Code /* isalnum example *//*Checks whether c is either a decimal digit or an uppercase or lowercase letter.*/#include <stdio.h>#include <cctype>int main (){ int i; char str[]="c3Po..."; i=0; while (isalnum(str[i])) i++; prin 阅读全文
posted @ 2013-03-20 14:09 zhang1107 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com/reference/cassert/View Code /* assert example */#include <stdio.h> /* printf */#include <assert.h> /* assert */void print_number(int* myInt) { assert (myInt!=NULL); printf ("%d\n",*myInt);}int main (){ int a=10; int * b = NULL; int * c = NULL; b=&a; 阅读全文
posted @ 2013-03-20 13:41 zhang1107 阅读(161) 评论(0) 推荐(0) 编辑