bug in goto command

Hi everyone, when compiling my program, it works, but something is going wrong.
Whenever it gets to a certain section in my program, it skips the goto command.
1
2
3
4
5
6
7
8
cout << "Checking for updates...";
  string line;
  ifstream myfile ("ver.axup");
  getline (myfile,line);
  if (line==ver)
{
goto start;             
}

it won't go to start which is here.
1
2
start:
CreateProcess("C:\\WINDOWS\\SYSTEM32\\cmd.exe", "/C pack1.bat", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);

It just ignores it and carries on.
Three words: don't use gotos.

-Albatross
Topic archived. No new replies allowed.