2011年3月31日

c语言加深

摘要: 1.函数1)谓词函数 bool为布尔型,bool取值false和true,是0和1的区别 如: #include<stdio.h>#include<stdlib.h>bool inter(int x){ return (x%2==0);}int main( ){ int x; scanf("%d",&x); if(inter(x)) printf("YES\n"); else printf("NO\n"); //system("pause"); return 0;} 2)递归函数- 阅读全文

posted @ 2011-03-31 16:53 more think, more gains 阅读(217) 评论(0) 推荐(0) 编辑

单词数 hdu 2072

摘要: 这道题太让我伤心了,用错函数,用了strstr,白忙活了。。 。。。 这道题太让我伤心了,用错函数,用了strstr,白忙活了。。。。。 阅读全文

posted @ 2011-03-31 01:17 more think, more gains 阅读(154) 评论(0) 推荐(0) 编辑

导航