OldSchoolHack

Register / Login English

[C++]Farbige Schrift in der Konsole

icon Thread: [C++]Farbige Schrift in der Konsole

Join Date: Aug 2007

Posts: 8643

User-Rating:

199 positive
33 negative
TEXT Code:
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. int main(void)
  5. {
  6. HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
  7. SetConsoleTextAttribute(hStdout,FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_INTENSITY);
  8. std::cout << "Gelb: Console mal anders" << std::endl;
  9. system("PAUSE");
  10. return 0;
  11. }

greetz KN4CK3R

__________________

Hallo