//doitmyway.net
#include <iostream>
#include <windows.h>
using namespace std;

int main(){
	int temp;

	SetConsoleTextAttribute(GetStdHandle ( STD_OUTPUT_HANDLE ) , 11 );
	cout<<"this is ";
	SetConsoleTextAttribute(GetStdHandle ( STD_OUTPUT_HANDLE ) , 12 );
	cout<<"example#3:"<<endl;
	SetConsoleTextAttribute(GetStdHandle ( STD_OUTPUT_HANDLE ) , 11 );
	cout<<"we are using Aqua with black background (#11) for Normal Text"<<endl;
	cout<<"and red with black background (#12) for Highlited Text"<<endl<<endl;

	cout<<"it is a nice thing to add colors to your assignments solutions!"<<endl;
	cout<<"you may try to choose numbers from 0 to 255"<<endl;

	SetConsoleTextAttribute(GetStdHandle ( STD_OUTPUT_HANDLE ) , 31 );
	cout<<"this line is set to use color number (#31)"<<endl;

	SetConsoleTextAttribute(GetStdHandle ( STD_OUTPUT_HANDLE ) , 11 );
	
	cout<<"all the best :)"<<endl;
 
	cin>>temp;

	return 0;
}
