001转义字符的使用

// Project18.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include<iostream>

using namespace std;

int main()
{
char Tab = '\t';
//水平制表符
cout << 1 << Tab << 2 << Tab << 3 << Tab << 4 << endl;

//字符串中引用双引号
cout << "He Said \"Thank You\" " << endl;

//回车换行
cout << "Allen is \n" << "shuai" << endl;

return 0;

}

posted @ 2021-06-29 15:16  江南王小帅  阅读(180)  评论(0)    收藏  举报