Code:
int main()
{
string input;
/*bool black = "OOOOOO";
bool white = "FFFFFF";
*/
string black = "000000";
string white = "FFFFFF";
cout << "Type in a Color to reveal its hexcode. Type All to view all colors indexed." << endl ;
cin >> input;
if(input == "black") // changed
{
cout << "The Hex Code for black is... #000000" << black << endl ;
Sleep(5000);
}
else if(input == "white") // changed
{
cout << "The Hex Code for white is... #FFFFFF" << white << endl ;
Sleep(5000);
} else {
cout << input << " ... I don't know that color" << endl;
}
cin.get();
return 0;
}