start: while (std::getline(file, line)) { std::istringstream iss(line); std::size_t space = line.find(" ", 0); if (!isspace(line[0])) { iss.clear(); } else { int i; for (i = 0; i <= 12; i++) { if (isalpha(line[i])) { iss.clear(); goto start; } } iss >> abc.hdhf;
!isspace(line[0])
line
while (Expression_1){ while(Expression_2) { // do something here // break instead of goto }}
break
bool flagAlpha = true; for (int i = 0; i <= 12; i++) { if (isalpha(line[i])) { iss.clear(); flagAlpha = false; break;//goto start; } } if(flagAlpha) { iss >> abc.hdhf; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)