上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
摘要: 常用方法 阅读全文
posted @ 2016-05-19 23:03 Not-Bad 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2140 Description The cows in farmer John's herd are numbered and branded with consecutive integers from 1 to N (1 <= N <= 10 阅读全文
posted @ 2016-05-19 22:48 Not-Bad 阅读(211) 评论(0) 推荐(0) 编辑
摘要: The word "search engine" may not be strange to you. Generally speaking, a search engine searches the web pages available in the Internet, extracts and 阅读全文
posted @ 2016-05-17 10:01 Not-Bad 阅读(642) 评论(0) 推荐(0) 编辑
摘要: In this problem, we consider a simple programming language that has only declarations of one-dimensional integer arrays and assignment statements. The 阅读全文
posted @ 2016-05-13 23:15 Not-Bad 阅读(290) 评论(0) 推荐(0) 编辑
摘要: isalpha() //字母 返回true isupper() //大写字母 返回true islower() //小写字母 返回true tolower() //大写字母转换为小写 toupper() //小写字母转换为大... 阅读全文
posted @ 2016-05-13 08:29 Not-Bad 阅读(397) 评论(0) 推荐(0) 编辑
摘要: Like Mr. Lamb, librarians have their problems with borrowers too. People don't put books back where they should. Instead, returned books are kept at t 阅读全文
posted @ 2016-05-10 22:33 Not-Bad 阅读(258) 评论(0) 推荐(0) 编辑
摘要: size_t一般用来表示一种计数,比如有多少东西被拷贝等。例如:sizeof操作符的结果类型是size_t,该类型保证能容纳实现所建立的最大对象的字节大小。 它的意义大致是“适于计量内存中可容纳的数据项目个数的无符号整数类型”。所以,它在数组下标和内存管理函数之类的地方广泛使用。 size_t是全局 阅读全文
posted @ 2016-05-10 22:26 Not-Bad 阅读(259) 评论(0) 推荐(0) 编辑
摘要: #include <string.h> const char *c_str(); 返回字符串地址,是一个c函数,返回类型const char*c_str()函数返回一个指向正规C字符串的指针常量, 内容与本string串相同. 这是为了与c语言兼容,在c语言中没有string类型,故必须通过stri 阅读全文
posted @ 2016-05-10 22:10 Not-Bad 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: sort的应用; 1、可以传入两个参数; sort(a,a+N) ,其中a是数组,a+N表示对a[0]至a[N-1]的N个数进行排序(默认从小到大排序); 2、传入三个参数; sort(a,a+N,cmp),第三个参数是一个函数 ; 如果让函数从大到小排序,可以用如下算法实现; bool cmp(i 阅读全文
posted @ 2016-05-10 21:50 Not-Bad 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: The only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printe 阅读全文
posted @ 2016-05-10 20:59 Not-Bad 阅读(255) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页