AgPro

导航

2010年6月23日 #

《三十分钟掌握STL》

摘要: 《三十分钟掌握STL》译者:kary电子书制作:冷寒生contact:karymay@163.net这是本小人书。原名是《using stl》,不知道是谁写的。不过我倒觉得很有趣,所以化了两个晚上把它翻译出来。我没有对翻译出来的内容校验过。如果你没法在三十分钟内觉得有所收获,那么赶紧扔了它。文中我省略了很多东西。心疼那,浪费我两个晚上。 STL 概述STL 的一个重要特点是数据结构和算法的分离。尽... 阅读全文

posted @ 2010-06-23 15:57 AgPro 阅读(299) 评论(0) 推荐(0) 编辑

C++的精度设置

摘要: 等同于C语言的 阅读全文

posted @ 2010-06-23 15:00 AgPro 阅读(1534) 评论(1) 推荐(0) 编辑

KMP-模板

摘要: #include #include using namespace std; const int maxn=1000005; char A[maxn],B[maxn]; //main string A & model string B int next[maxn]; int n,m; //the length of string A & string B vo... 阅读全文

posted @ 2010-06-23 14:41 AgPro 阅读(351) 评论(0) 推荐(0) 编辑

STL-set用法

摘要: // 1.set::begin/end #include #include using namespace std; int main () { int myints[] = {75,23,65,42,13,13}; set myset (myints,myints+6); set::iterator it; cout #include using namespace... 阅读全文

posted @ 2010-06-23 13:39 AgPro 阅读(13473) 评论(1) 推荐(1) 编辑