上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页
摘要: 方法一 摘录:https://jingyan.baidu.com/article/02027811b4d2da1bcc9ce5f7.html 方法二 利用MathType数学公式编辑器 exe下载:https://pan.baidu.com/s/13iFnzqeVYcJ9TTSTqrCjwQ 阅读全文
posted @ 2018-04-26 11:42 小雨滴答 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 去工程文件中删除ncb文件,重新打开工程 阅读全文
posted @ 2018-04-24 16:55 小雨滴答 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 容器(containers):用来管理某一类对象的集合,包括deque、list、vector、map等 迭代器(iterators):用于遍历对象集合的元素,集合可以是容器,也可能是容器的子集 push_back( ) 成员函数在向量的末尾插入值,如果有必要会扩展向量的大小。 size( ) 函数 阅读全文
posted @ 2018-04-24 08:55 小雨滴答 阅读(1546) 评论(0) 推荐(0) 编辑
摘要: STL提供了两个用来计算排列组合关系的算法,分别是next_permutation和prev_permutation。首先我们必须了解什么是“下一个”排列组合,什么是“前一个”排列组合。考虑三个字符所组成的序列{a,b,c}。 这个序列有六个可能的排列组合:abc,acb,bac,bca,cab,c 阅读全文
posted @ 2018-04-23 14:25 小雨滴答 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 #include <map> 4 #include <algorithm> 5 using namespace std; 6 7 typedef int KeyType; //typedef 为现有类型创建别名 阅读全文
posted @ 2018-04-23 10:49 小雨滴答 阅读(307) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <string.h> #include <algorithm> using namespace std; vector<int>obj; int main() { for(int i=0;i<10;i++) 阅读全文
posted @ 2018-04-19 18:18 小雨滴答 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <vector> 3 #include <string.h> 4 #include <algorithm> 5 using namespace std; 6 int main(){ 7 vector <int>obj;//创建一个向量 阅读全文
posted @ 2018-04-19 18:03 小雨滴答 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 int main() 2 { 3 int updates=6; //定义int变量updates 4 int * p_updates; //定义指针p_updates 5 p_updates=&updates;//将updates的地址赋给指针p_upfates 6 7 cout<<"value:update="<<updates<<endl; //updates=6 ... 阅读全文
posted @ 2018-04-18 09:49 小雨滴答 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 运行: 当新建一个派生类变量时,首先调用基类的构造函数,然后调用派生类的构造函数 删除该变量,调用析构函数,首先调用派生类的析构函数,然后调用基类的析构函数 阅读全文
posted @ 2018-04-17 18:11 小雨滴答 阅读(166) 评论(0) 推荐(0) 编辑
摘要: base为基类 derived为派生类 派生类有三个成员函数,其中两个是自定的:a和b,第三个c是继承于基类的,当调用a时,先查看派生类是否有a的定义:base::a called b同理得::base::b called 但是当调用c时,派生类中没有定义这个成员函数,所以转到基类中寻找,即得到:b 阅读全文
posted @ 2018-04-17 17:57 小雨滴答 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页