std::string str = "00/34";
std::string::size_type slash = str.find("/");
if (slash != std::string::npos) {
int num1 = atoi(str.substr(0, slash-1).c_str());
int num2 = atoi(str.substr(slash+1).c_str());
cout<<"Num1: " << num1 << ", Num2: " << num2;
}