After all that other posts that I did, the goto that I tried to do the other day didnt work today, here is the complete code:
------------------------------------------------------------------------------------
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
void main(void)
{
int X;
A:
X=X+1;
if (X==10000000)
goto O; //It says errors are here
char game4;
int game1=rand()%3;
if (game1==1)
{
int game2=rand()%10;
cout<<game2;
goto A;
}
int game3=rand()%8;
if (game3 == 1)
game4 = '!';
if (game3 == 2)
game4 = '@';
if (game3 == 3)
game4 = '#';
if (game3 == 4)
game4 = '$';
if (game3 == 5)
game4 = '%';
if (game3 == 6)
game4 = '^';
if (game3 == 7)
game4 = '*';
cout<<game4;
goto A;
O: //and here
return (0);
}
------------------------------------------------------------------------------------
Some one help me by telling me how to make it jump down the program using goto's please.