C++ goto statement ends only when the user presses Ctrl-Break.

Description

C++ goto statement ends only when the user presses Ctrl-Break.

#include <iostream>
using namespace std;
int main()//from ww w . j a  v  a  2  s  . c  o m
{
   Again: cout << "This message \n";
   cout << "\t keeps repeating \n";
   cout << "\t\t over and over \n";
   goto Again;   // Repeat continuously.
   return 0;
}



PreviousNext

Related