console

#include <iostream>
#include <windows.h>

using namespace std;
HANDLE hCon;

enum Color { DARKBLUE = 1, DARKGREEN, DARKTEAL, DARKRED, DARKPINK, DARKYELLOW, GRAY, DARKGRAY, BLUE, GREEN, TEAL, RED, PINK, YELLOW, WHITE };

void SetColor(Color c){
        if(hCon == NULL)
                hCon = GetStdHandle(STD_OUTPUT_HANDLE);
        SetConsoleTextAttribute(hCon, c);
}

int main(){
  SetColor(RED);
  cout << "InfernoDevelopment.com\n";
  SetColor(DARKRED);
  cout << "Join our forums at www.infernodevelopment.com/forum\n";
  cin.get();
  return ;
}

你可能感兴趣的:(console)