C++ 申明字符串时,字符串本身还有引号或者反斜杠什么的 2019-08-15 就是一样的#include <stdio.h> #include <string> #include <string.h> #include <iostream> using namespace std; int main() { string a = R "(:\"欲儿最帅\" )" ; 申明的字符是 :\"欲儿最帅\" 这一坨 printf(a); while(1); return 0; }
发表评论: