摘要: Easy Problem http://www.bianchengla.com/oj/1/practise/problem?id=1033 时间限制:1000 ms | 内存限制:65536 KB 描述 In this problem, you're to calculat... 阅读全文
posted @ 2012-11-05 08:36 N3verL4nd 阅读(177) 评论(0) 推荐(0) 编辑
摘要: ITAT复赛的一个题,涉及文件操作,不会=。= 回学校学习了下: fseek 语法: #include int fseek( FILE *stream, long offset, int origin ); 函数fseek()为给出的流设置位置数据. ori... 阅读全文
posted @ 2012-11-05 08:24 N3verL4nd 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 在形形色色的行业中,程序员绝对是非主流:除了 IT 从业者之外,我的同学、亲友们 几乎都不能一下子就明白我做的工作是什么。 这自然是一个悲剧,在外人眼里,随便挑一个程序员出来都会认为他是一个 geek…… 更悲剧的是,很多程序员自身都难以清晰地解释程序员的意义。 于是那篇文章指出一个核心观... 阅读全文
posted @ 2012-11-04 19:02 N3verL4nd 阅读(291) 评论(0) 推荐(0) 编辑
摘要: C++著名程序库的比较和学习经验(一些基础) 1、——C++标准库 2、——准标准库Boost 3、——GUI 4、——网络通信 5、——XML 6、——科学计算 7、——游戏开发 8、——线程 9、——序列化 10、——字符串 11、——综合 12... 阅读全文
posted @ 2012-11-04 18:08 N3verL4nd 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 函数原型:extern void *memcpy(void *dest, void *src, unsigned int count) 参数说明:dest为目的字符串,src为源字符串,count为要拷贝的字节数。 所在库名:#include 函数功能:将字符串sr... 阅读全文
posted @ 2012-11-03 21:33 N3verL4nd 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 函数原型:extern char *strtok(char *string, char *seps) 参数说明:string为源字符串,seps为指定的分隔符,是一个分隔字符串的集合。 所在库名:#include 函数功能:将字符串string中所有在seps中出现... 阅读全文
posted @ 2012-11-03 21:32 N3verL4nd 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 原型:extern int isalnum(int c); 用法:#include 功能:判断字符c是否为字母或数字 说明:当c为数字0-9或字母a-z及A-Z时,返回非零值,否则返回零。 举例: #include #include int main() { int c; ... 阅读全文
posted @ 2012-11-03 21:32 N3verL4nd 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 函数原型:extern int memcmp(void *str1, void *str2, unsigned int n) 参数说明:str1和str2为指定作比较的字符串,比较两个字符串的前n个字节。 所在库名:#include 函数功能:比较字符串str1和s... 阅读全文
posted @ 2012-11-03 21:31 N3verL4nd 阅读(473) 评论(0) 推荐(0) 编辑
摘要: How many prime numbers Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7324 Accepted Su... 阅读全文
posted @ 2012-11-03 21:30 N3verL4nd 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 利用二进制扫描的方法快速的计算ab mod c,显然用常规方法计算74237 mod 4233计算量过大。 基本原理:(a×b)mod c=((a mod c)×b)mod c 例如:35 mod 7=3(101)2 mod 7=((3(100)2 mod 7)×3)mod 7=((9(... 阅读全文
posted @ 2012-11-03 21:29 N3verL4nd 阅读(110) 评论(0) 推荐(0) 编辑