#include<windows.h> #include<conio.h> #include<iostream> using namespace std; void setcolor(unsigned short color) { HANDLE hCon=
GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon,color); } int main() { int i;
for(i=0;i<300;i++) { setcolor(i);
cout<<"Warna"<<i <<"\t"; } getch(); } |
0 Response to "Memanggil pustaka warna"
Posting Komentar