1234567891011121314151617181920
#include <iostream> using namespace std; int a = 0; string save = "ccc"; int main(){ switch(std::atoi(save.c_str())) { case "ccc": a = 5; default: break; } std::cout << a << endl;//should be 5 getchar(); }
if