-1
I’m making a simple code and I’m using the goto
#include <iostream>
using namespace std;
int exemplo(void);
int main()
{
exemplo();
}
exemplo(){
comeco:
{
int numero;
numero = 0;
goto fim;
}
fim:
{
cout << numero;
}
}
but says that the numero
was not declared in the brush and sometimes the code only assumes a random value for it, some solution? (I have several goto
in that code)
But this code is to test the
goto
? 'Cause I don’t see why I shouldgoto
here.– Isac
If the answer was useful to you, be sure to mark it, see: How and why to accept an answer?
– sbrubes