:confused: I'm confused!
Printable View
:confused: I'm confused!
lots of ways.... if statements, switches, function calls, gotos. I think you need to read a few tutorials especially on control statements and functions.
Using functions, iterations, selections and, in rare cases, goto.
This is an example of overkill with gotos:
Code:#include <iostream>
char name[256];
int main( void )
{
goto b;
f:
return 0;
e:
std::cout<<std::endl;
goto f;
d:
std::cout<<name;
goto e;
c:
std::cout<<"Hello ";
goto d;
b:
std::cin>>name;
goto c;
}