![]() |
#2
rjsp2022-07-15 11:39
|
//按是书上写的呀,报错,错在for那行。
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str="qwertyuiop";
for(auto a : str)
cout<<a<<endl;
return 0:
}
//error C2143: syntax error : missing ',' before ':
//error C2059: syntax error : ':'
//error C2143: syntax error : missing ';' before ':'