重点:转义符的使用 \加在双引号、\n的前面可以使这些符号失去功能不被读取。

#include using namespace std; int main(){ cout << "printf("Hello world!\n");" <<endl << "cout << "Hello world!" << endl;" ; return 0; }