#include <iostream>
using namespace std;
int main()
{
//转义字符
//换行符 \n
cout << "hello world\n";
//反斜杠 \\
cout << "\\"<<endl;
//水平制表符 \t
cout << "aaa\tbbb" << endl;
system("pause");
return 0;
}
运行截图:
#include <iostream>
using namespace std;
int main()
{
//转义字符
//换行符 \n
cout << "hello world\n";
//反斜杠 \\
cout << "\\"<<endl;
//水平制表符 \t
cout << "aaa\tbbb" << endl;
system("pause");
return 0;
}
运行截图: