is there anything in c++ that provides to print out on screen colored text
ex.
cout<<"welcome"<<endl;
output:
welcome
thx

Recommended Answers

All 2 Replies

Well depending on your operating system you may be able to get by with something like this:

#include <stdlib.h>
#include <iostream.h>
void main()
{
		cout<<"Boring..."<<endl;
		system("color 0B");
		cout<<"AMAZING!"<<endl;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.