C++ examples for Language Basics:Hello World
Escape Sequence | Character |
---|---|
\n | Newline |
\t | Horizontal tab |
\v | Vertical tab |
\b | Backspace |
\r | Carriage return |
\f | Form feed |
\a | Alert |
\\ | Backslash |
\? | Question mark |
\' | Single quotation |
\" | Double quotation |
\nnn | Octal number |
\xhhhh | Hexadecimal number |
\0 | Null character |
#include <iostream> using namespace std; int main()/*from w w w .j a v a 2 s . c om*/ { cout << "Computers\n, computers \teverywhere"; cout << "\n as far as I \'\"can \\C"; return 0; }