Sta*_*tan 2 c++ visual-studio-2005
std:string str("text1\; text2\;");
Run Code Online (Sandbox Code Playgroud)
怎么来VS2005说 ; unrecognized character escape sequence.
请指教,谢谢.
Pet*_*erK 13
因为这是错误的:
std:string str("text1\; text2\;");
Run Code Online (Sandbox Code Playgroud)
这是对的:
std::string str("text1; text2;");
Run Code Online (Sandbox Code Playgroud)
标准后的两个冒号.