Hello, in part of the program I'm working on, I have it so the user inputs either y, Y, n, or N for an answer using cin.getline. Though in my switch function, my compiler tells me "error C2450: switch expression of type 'char [2]' is illegal"
here is my sample code:
Any help?Code:void botguy(){ clear_screen(); cout<<"Is Botguy On Your Side? (y/n): "; cin.getline(bot_an,2); switch(bot_an){ case "y":
~Wiiplayer12