C++ cout字符串变成整型的问题
摘要:int a = 1; cout<<'a = '<<a<<endl; 最后输出一长串整型,而不是a = 1 问题在于'a = '这里,改成"a = ",即 int a = 1; cout<<"a = "<<a<<endl;
阅读全文
posted @ 2023-04-27 10:23
posted @ 2023-04-27 10:23
posted @ 2023-04-13 22:01
posted @ 2023-04-13 17:20
posted @ 2023-04-12 21:10
posted @ 2023-04-08 21:59