上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 63 下一页
摘要: #include#include #include #include using namespace boost;using namespace std;void main(){ srand(time(0)); int tem; for (int i = 0; i > wait;}#include#include #include #include int RandBetween(int a, int b) { int result; result = a + rand() % ( b - a + 1); return result;}using namespace boost;usin 阅读全文
posted @ 2013-07-06 12:34 Predator 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include using namespace std;#include using namespace boost::filesystem;using namespace boost;int _tmain(int argc, _TCHAR* argv[]){ namespace fs = boost::filesystem; // 路径处理 path myPath("D:/boost_1_53_0/build_boost_1_53_0.bat"); string res; res = myPath.string( 阅读全文
posted @ 2013-07-06 12:33 Predator 阅读(548) 评论(0) 推荐(0) 编辑
摘要: C++ map的基本操作和使用(2009-09-23 14:58:21)标签: cmap编程基本操作livehaiit 分类: Pro.LanguagesMap是c++的一个标准容器,她提供了很好一对一的关系,在一些程序中建立一个map可以起到事半功倍的效果,总结了一些map基本简单实用的操作!1. map最基本的构造函数;mapmapstring; mapmapint;mapmapstring; mapmapchar;mapmapchar; mapmapint;2. map添加数据;map maplive;1.maplive.insert(pair(102,"aclive" 阅读全文
posted @ 2013-07-06 12:29 Predator 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;class CPerson{public: CPerson(){} ~CPerson(){} virtual void Walk(){cout Walk();/// manager = new CPerson; //注意这里报错 int wait; cin >> wait;} 阅读全文
posted @ 2013-07-06 12:27 Predator 阅读(261) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 63 下一页