-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolor.cpp
More file actions
42 lines (42 loc) · 1.18 KB
/
color.cpp
File metadata and controls
42 lines (42 loc) · 1.18 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
#include <fstream>
#include <iostream>
#include <conio.h>
#include <cmath>
#include <windows.h>
using namespace std;
int main()
{
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
// system("Color 1");
SetConsoleTextAttribute(h, 1);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 2);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 3);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 4);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 5);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 6);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 7);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 8);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 9);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 10);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 11);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 12);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 13);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 14);
cout << "hallo word\n";
SetConsoleTextAttribute(h, 15);
cout << "hallo word\n";
return 0;
}