Skip to content

Instantly share code, notes, and snippets.

@winhtut
Created November 13, 2017 15:05
Show Gist options
  • Save winhtut/35f3f32240e4139946ee793f0ec6f907 to your computer and use it in GitHub Desktop.
Save winhtut/35f3f32240e4139946ee793f0ec6f907 to your computer and use it in GitHub Desktop.
c++ color code
#include<Windows.h>
#include<stdint.h>
#include <iostream>
#include<conio.h>
int main() {
for (int i = 0; i <100000000000; ++i) {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), i);
printf("Text colorin use= %d\n", i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment