I need to know how to use the goto command, I have a list of 'ifs'
something like this:
int main()
{
cout << blah blah blah...if blah blah blah press 1, if blah blah
blah press 2.
...
Type: Posts; User: Stryder_SoZ
I need to know how to use the goto command, I have a list of 'ifs'
something like this:
int main()
{
cout << blah blah blah...if blah blah blah press 1, if blah blah
blah press 2.
...
I set a letter
char ch;
Int r;
and when I try to use them in an if-
cin >> ch;
if (ch==r)
cout << "blah blah blah"<<endl
I am making a program, I am using alot of IF things--llke
IF (x==2)
and so on.
I need to know how to set a letter to an if--like
IF (x==L)
or something like that, I need to know how to...
ok, say I am using the goto command, how do I use it effectively.
Every time I try it tells me I have an error or two.
If anyone can help me I would greatly appreciate it,
thx.:eek:
:confused:
I am having the same problem, isnt that wierd?
ok, everyone is telling me to use the goto() command, but every time I try it doesnt work. Can someone please explain how the goto() command works and what I do to make it work?
Thx
ok, this is just a portion of my actual program, I am having trouble down near the bottom, if you have any suggestions please feel free, I am always open to suggestions.
cout << "press 1 to...
I love you:rolleyes:
ok, when you get an "if" to loopback to the main by putting in main(); , how can I get it to loopback to a different "if" instead of the original main() at the top?:confused: