-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp~
More file actions
57 lines (57 loc) · 2.22 KB
/
test.cpp~
File metadata and controls
57 lines (57 loc) · 2.22 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
50
51
52
53
54
55
56
57
#include <iostream>
using namespace std;
void showUNO(int color, int N){
switch(color){
case 'R':
cout << "\033[41;37m" << "===========" << "\033[0m" << endl;
cout << "\033[47;31m" << "#"<<N <<"\033[0m";
cout << "\033[41;37m" << " #" <<"\033[0m"<< endl;
cout << "\033[41;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[47;31m" << "# "<<N<<" #" <<"\033[0m"<< endl;
cout << "\033[41;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[41;37m" << "# "<<"\033[0m";
cout << "\033[47;31m" << N<<"#" <<"\033[0m"<< endl;
cout << "\033[41;37m" << "===========" << "\033[0m"<<endl;
break;
case 'Y':
cout << "\033[43;37m" << "===========" << "\033[0m" << endl;
cout << "\033[47;33m" << "#"<<N <<"\033[0m";
cout << "\033[43;37m" << " #" <<"\033[0m"<< endl;
cout << "\033[43;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[47;33m" << "# "<<N<<" #" <<"\033[0m"<< endl;
cout << "\033[43;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[43;37m" << "# "<<"\033[0m";
cout << "\033[47;33m" << N<<"#" <<"\033[0m"<< endl;
cout << "\033[43;37m" << "===========" << "\033[0m"<<endl;
break;
case 'B':
cout << "\033[44;37m" << "===========" << "\033[0m" << endl;
cout << "\033[47;34m" << "#"<<N <<"\033[0m";
cout << "\033[44;37m" << " #" <<"\033[0m"<< endl;
cout << "\033[44;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[47;34m" << "# "<<N<<" #" <<"\033[0m"<< endl;
cout << "\033[44;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[44;37m" << "# "<<"\033[0m";
cout << "\033[47;34m" << N<<"#" <<"\033[0m"<< endl;
cout << "\033[44;37m" << "===========" << "\033[0m"<<endl;
break;
case 'G':
cout << "\033[42;37m" << "===========" << "\033[0m" << endl;
cout << "\033[47;32m" << "#"<<N <<"\033[0m";
cout << "\033[42;37m" << " #" <<"\033[0m"<< endl;
cout << "\033[42;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[47;32m" << "# "<<N<<" #" <<"\033[0m"<< endl;
cout << "\033[42;37m" << "# #" << "\033[0m"<<endl;
cout << "\033[42;37m" << "# "<<"\033[0m";
cout << "\033[47;32m" << N<<"#" <<"\033[0m"<< endl;
cout << "\033[42;37m" << "===========" << "\033[0m"<<endl;
break;
}
}
int main(){
showUNO('R',8);
showUNO('Y',8);
showUNO('B',8);
showUNO('G',8);
return 0;
}