Quote:
Originally Posted by virxen View Post
Code:
#include <windows.h>
#include <stdio.h>
 
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define LIGHTGREY 7
#define DARKGREY 8
#define LIGHTBLUE 9
#define LIGHTGREEN 10
#define LIGHTCYAN 11
#define LIGHTRED 12
#define LIGHTMAGENTA 13
#define YELLOW 14
#define WHITE 15
#define BLINK 128 
 
int main(){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), _rotl(RED,4) | GREEN);
printf("Your text here");
getchar();
return 0;
}
without iostream,for background and foreground color
Thank you very much virxen,that helped a whole bunch.