How to change the text using Dev-CPP. Not a question just trying to help
I've noticed that a lot of people, especially newbies have had trouble with this issue, I am one of them. After searching for over an hour, I finally figured out how to do it using dev -cpp
[ code ]
#include <conio.c> //needed to change the text color
#include <iostream.h> //needed for cout / cin
int main()
{
textcolor(COLOR); //where color can be RED, BLUE , etc.
//it seems that the color needs to be in all caps
system("cls"); //not the best way, but it clears the screen
cout<<"This is colored text. ";
system("pause"); //once again not the best, but it pauses
//the screen
return 0;
}
[/code]
hopefully this helps.