随笔 - 140  文章 - 0  评论 - 15  阅读 - 24万
01 2010 档案
STL常用知识
摘要:STL,为什么你必须掌握 http://blog.csdn.net/xwj102/archive/2008/09/03/2871567.aspx STL set详解 http://www.cnblogs.com/buffer/archive/2009/12/04/1617005.htmlstl multimap用法 http://hi.baidu.com/349426204/blog/item/0... 阅读全文
posted @ 2010-01-25 18:44 怂QQ 阅读(270) 评论(0) 推荐(0) 编辑
C++ STL map的使用
摘要:1、map简介 map是一类关联式容器。它的特点是增加和删除节点对迭代器的影响很小,除了那个操作节点,对其他的节点都没有什么影响。对于迭代器来说,可以修改实值,而不能修改key。 2、map的功能 自动建立Key - value的对应。key 和 value可以是任意你需要的类型。根据key值快速查找记录,查找的复杂度基本是Log(N),如果有1000个记录,最多查找10次,1,000,000个记... 阅读全文
posted @ 2010-01-24 23:09 怂QQ 阅读(514) 评论(0) 推荐(0) 编辑
fseek和ftell
摘要:fseek和ftellTue Jul 24 13:31:24 2007fseek函数是 用来设定文件的当前读写位置.函数原型: int fseek(FILE *fp,long offset,int origin);函数功能:把fp的文件读写位置指针移到指定的位置.fseek(fp,20,SEEK_SET); 意思是把fp文件读写位置指针从文件开始后移20个字节.ftell函数是用来获取文件的当前读... 阅读全文
posted @ 2010-01-24 22:22 怂QQ 阅读(550) 评论(0) 推荐(1) 编辑
string与string.h 的作用和区别<转>
摘要:c++中 string与string.h 的作用和区别 #include <string.h> void main() { string aaa= "abcsd d"; printf("looking for abc from abcdecd %s\n", (strcmp(aaa,"abc")) ? "Found" : "Not Found"); } 不能正确执行,提示说是stri... 阅读全文
posted @ 2010-01-20 23:06 怂QQ 阅读(425) 评论(0) 推荐(0) 编辑
gdb gcc svn
摘要:用GDB调试程序 http://dsec.pku.edu.cn/~yuhj/wiki/gdb.html用GDB调试程序 - Ubuntu中文 http://blog.csdn.net/chief1985/archive/2008/05/13/2441150.aspxg++的使用 http://www.dutor.net/index.php/2009/05/g-compiler-usage/gcc ... 阅读全文
posted @ 2010-01-11 19:12 怂QQ 阅读(339) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示