mirror of
http://106.12.3.193:3000/violeteverisland/learn_cpp.git
synced 2026-03-07 17:17:33 +08:00
13 lines
399 B
C++
13 lines
399 B
C++
//
|
||
// Created by violet on 2026/2/24.
|
||
//
|
||
//转义字符:将普通的字符使用\作为开头,将其含义进行转换,对照得到ascii表的控制字符的功能
|
||
//\n \t \\ \'\"
|
||
#include "iostream"
|
||
#include "windows.h"
|
||
int main() {
|
||
SetConsoleOutputCP(CP_UTF8);
|
||
std::cout<<"aa\tbbbb"<< std::endl;
|
||
std::cout<<"aa\t\tbbbb"<<std::endl;
|
||
std::cout<<"aa\taabbbbaabbbb"<<std::endl;
|
||
} |