初学C++ 之 auto关键字(IDE:VS2013)

/*使用auto关键字,需要先赋初值,auto关键字是会根据初值来判断类型*/
auto i = ;
auto j = ;
cout << "auto i = 5" << "\ti type:" << typeid(i).name() << endl << "auto j = 10" << "\tj type:" << typeid(j).name() << endl;
cout << "i + j = " << i + j << endl; auto a = "Hello World!";
cout << "auto a = Hello World!" << endl;
cout << "a type:" << typeid(a).name() << endl; auto b = false;
cout << "auto b = false" << endl;
cout << "b type:" << typeid(b).name() << endl;

初学C++ 之 auto关键字(IDE:VS2013)

上一篇:pycharm远程linux开发和调试代码


下一篇:利用GDB在远程开发机进行调试