57.C++处理转义字符

 1 #include <iostream>
 2 #include <string>
 3 #include <cstdlib>
 4 using namespace std;
 5 
 6 
 7 
 8 void main()
 9 {
10     //string str("\"C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\QQScLauncher.exe\"");
11     //\n不会换行,换行只能在内部换行
12     string str(R"("C:\Program Files(x86)\Tencent\QQ\Bin\QQScLauncher.exe")");
13     system(str.c_str());
14     cin.get();
15 } 

 

posted @ 2018-03-13 12:17  喵小喵~  阅读(1131)  评论(0编辑  收藏  举报