Im trying to change the color of some of my cout outputs but after that cout to be again the same color.
Ive tried the following code:
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 4);
cout << "Help-Please" << endl;
but it continues even after the cout has been completed. Also to add that some of these color changes will be inside if statements. What code would you recommend me to add to to get this effect?