011.数据类型-转义字符

#include <iostream>
using namespace std;
int main()
{
    //转义字符

    //换行符\n
    cout << "你好啊\n学生";



    //反斜杠\\

    cout << "\\" << endl;

    //水平制表符\t     作用整齐
    cout << "aaa\thelloword"<<endl;
    cout << "aaaa\thelloword" << endl;
    cout << "aa\thelloword" << endl;
    cout << "aaaa\thelloword" << endl;

    system("pause");
    return 0;
}

 

posted @ 2021-09-03 09:03  梦之心  阅读(41)  评论(0编辑  收藏  举报