switch()
invalid conversion of 'const char*' to 'char' [-fpermissive]
void info::get_factorio_version(string* factorio_version){ bool loop = true; while(loop){ cout << "What version of Factorio is this mod for?" << endl; cout << " 1 - 0.14.xx" << endl; cout << " 2 - 0.13.xx" << endl; cout << " 3 - 0.12.xx or earlier" << endl; cout << "Your selection: "; int select; cin >> select; switch(select){ case '1': { *factorio_version = "0.14"; cout << "\n\n"; loop = false; } break; case '2': { *factorio_version = "0.13"; cout << "\n\n"; loop = false; } break; case '3': { *factorio_version = "NULL"; cout << "\n\n"; loop = false; } break; default: { cout << "\n\nInvalid response.\n\n"; } break;}}}
string selectSTR; cin >> stringSTR; int selectINT = atoi(selectSTR);
string selectSTR; cin >> stringSTR; char selectCHAR = selectSTR.c_str();
select
int
case
switch(select){ case 1: *factorio_version = "0.14";
{
}
char const*
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)