-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEscapeSeq.cpp
More file actions
49 lines (32 loc) · 1.02 KB
/
EscapeSeq.cpp
File metadata and controls
49 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
ESCAPE SEQUENCES
Write a program to print the following picture.Take note that you need to use escape sequences to print special characters.
'__'
(oo)
+========\/
/ || %%% ||
* ||-----||
"" ""
Escape Sequence Description Hex (Decimal)
\n New-line(or Line-feed) 0AH (10D)
\r Carriage-return 0DH (13D)
\t Tab 09H (9D)
\" Double-quote (needed to include
" in double-quoted string) 22H (34D)
\' Single-quote 27H (39D)
\\ Back-slash (to resolve ambiguity) 5CH (92D)
*/
#include <iostream> // done to include input output streams
int main()
{
std::cout << "\n \' \'";
std::cout << "\n (oo)";
std::cout << "\n +========\\\/";
std::cout << "\n \/ || %%% ||";
std::cout << "\n* ||-----||";
std::cout << "\n \"\" \"\"";
std::cout << std::endl;
//for pausing the output screen or rather isssuing a sleep command to the processor
system("pause");
return 0;
}