A1METALHEAD
Programmer
hi. i have been trying to find a way to change the text color, and the background color of spacific text. i have found the following example:
#include "conio.h"
int main(int argc, void** argv)
{
textcolor(LIGHTGREEN);
cout << "Hello World!!!" << endl;
textcolor(LIGHTRED);
cout << "ERROR!!!" << endl;
textcolor(BLACK);
textbackground(LIGHTRED);
cout << "Error message here!" << endl;
getch();
return 0;
}
but it dosent work! same with pausing for a certn amount of time using the Sleep() funciton. i get "textcolor() is undefined, first use this function" and so on saying that all the functions are undefined (im using dev c++). is there any way that you could change the background+color of text or pause? thanks
~metalhead
#include "conio.h"
int main(int argc, void** argv)
{
textcolor(LIGHTGREEN);
cout << "Hello World!!!" << endl;
textcolor(LIGHTRED);
cout << "ERROR!!!" << endl;
textcolor(BLACK);
textbackground(LIGHTRED);
cout << "Error message here!" << endl;
getch();
return 0;
}
but it dosent work! same with pausing for a certn amount of time using the Sleep() funciton. i get "textcolor() is undefined, first use this function" and so on saying that all the functions are undefined (im using dev c++). is there any way that you could change the background+color of text or pause? thanks
~metalhead