I want to change the color of the user(input) separately from the speaker's (my) color. How can I do that?
#include<iostream>
#include<string>
#include<windows.h>
using namespace std;
int main()
{
string mood;
cout << "What's up?Good or meh?\n";
cin >> system("Color 07") >> mood; //THIS IS THE ERROR LINE
if (mood == "good")
{
cout << "\nHappy to hear that";
}
else if(mood == "meh")
{
cout << "\nYou'll pull through it" ;
}
else
{
cout << "\nplease speak in lowercase too stupid to understand anything else. Also you good or meh?" ;
}
cout << "Anyways, wanna play a game?";
return 0;
}