is there a way to use the switch statement with strings...like....
sorry if my code is wrong...i havent use switch statements much and i am at school with no compiler to check my syntax...Code:std::string blah; switch (blah) { case "happy": std::cout << "happy" << endl; break; }
help is appreciated....
thanks