I am using atoi to convert a string to an int, and It is doing that successfully. however, having the following section of code in my program is making the program deliver an error upon reaching "return 0;"
Code:converted[0] = atoi(score[1].c_str()); converted[1] = atoi(score[3].c_str()); converted[2] = atoi(score[5].c_str()); converted[3] = atoi(score[7].c_str()); converted[4] = atoi(score[9].c_str());




Reply With Quote