摘要:
1. 顺序容器的初始化操作 1.1 顺序容器(vector,list,deque)的五种初始化方法,以 vector 为例。 #include #include #include using namespace std;int main(int argc, const char *argv[]){ //1.定义空数组 然后后面追加 vector vec1; vec1.p... 阅读全文
posted @ 2014-07-16 22:58
Monica_Lee
阅读(246)
评论(1)
推荐(0)
摘要:
1.函数指针1.1 普通成员函数指针包含类名信息以及const属性,指向具体函数是必须加上&符号。#include using namespace std;class Test{ public: void setValue(const string &s, int a){ ... 阅读全文
posted @ 2014-07-16 10:17
Monica_Lee
阅读(389)
评论(0)
推荐(0)

浙公网安备 33010602011771号