/*使用auto關鍵字,需要先賦初值,auto關鍵字是會根據初值來判斷類型*/
auto i = 5;
auto j = 10;
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;
