- 博客(4)
- 收藏
- 关注
原创 C++ vector和嵌套map用法
void FormatStr::DecodeStr(){ map<string, string> mapParse; map<string, string>::iterator iter; string rawStr{R"(?contentName={"abc":"def", "sa"}&select={contentName, a, b...
2019-03-14 17:20:51
3574
原创 C++11 新特性
从上个c++版本过去11年了,c11有了更多的特性,使各个模块组装的的更合适。 “ It now supports lambda expressions, automatic type deduction of objects, uniform initialization syntax(统一初始化语法), delegating constructors(委派构造函数), del...
2019-01-11 14:39:35
181
原创 c++常识2
学习和练习一种编程语言最好的方法是自己修改书中例题程序,设法增加自己的功能 1. sizeof 返回该变量类型或对象所占的字节数 2.cout 3.cin只能读到一个字符,碰到空格或tab就会结束;getline(cin,mystring)读取一整行输入 4.for(n=0,i=100;n!=i;n++,i--) 5.c++中使用地址传参可以这样 int add(int &a,int
2017-06-12 19:57:32
228
原创 C++ 常识
1.c++编译器选择 其实除了ms 的visual c++ 编译器外,还可以使用几款软件borland c++,eclipse cdt,dev c++ /wxdev c++ 2.新的c++标准使用头文件声明时,不在使用。h,如# include即可 3.一个字节byte是c++最小的内存单位 4.char short int long和float ,double,long double都是
2017-06-12 19:02:14
267
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人