Skip to content

Commit af09adb

Browse files
Create Colorful_Output.cpp
1 parent 493e35d commit af09adb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Colorful_Output.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <iostream>
2+
#include <Windows.h>
3+
4+
using namespace std;
5+
6+
int main() {
7+
for (int color = 0; color < 16; color++)
8+
{
9+
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);
10+
cout << "Console with colorful strings.\n";
11+
}
12+
13+
return 0;
14+
}

0 commit comments

Comments
 (0)