C++轉義序列的編碼 bondini.cpp
字元名稱 | ASCII符號 | C++程式碼 | 十進位制ASCII碼 | 十六進位制ASCII碼 |
換行符 | NL(LF) | /n | 10 | 0xA |
水平製表符 | HT | /t | 9 | 0x9 |
垂直製表符 | VT | /v | 11 | 0xB |
退格 | BS | /b | 8 | 0x8 |
回車 | CR | /r | 13 | 0xD |
振鈴 | BEL | /a | 7 | 0x7 |
反謝槓 | / | // | 92 | 0x5C |
問號 | ? | /? | 63 | 0x3F |
單引號 | ' | /' | 39 | 0x27 |
雙引號 | " | /" | 34 | 0x22 |
#include <iostream>
int main()
{
using namespace std;
cout << "/aOperation /"HyperHype/" is now activated!/n";
cout << "Enter your agent code:________/b/b/b/b/b/b/b/b";
long code;
cin >> code;
cout << "/aYou entered " << code << ".../n";
cout << "/aCode verified! Proceed with Plan23!/n";
return 0;
}