<help> is there a way to...

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2006
Posts: 37
Reputation: wingwarp is an unknown quantity at this point 
Solved Threads: 0
wingwarp's Avatar
wingwarp wingwarp is offline Offline
Light Poster

<help> is there a way to...

 
0
  #1
Jul 25th, 2006
is there a way to simply tell the compiler to JUMP back to a different point???

like:
  1. loop;
  2. "stuff"
  3. loop;

the first loop says where the second loop loops back to any help would help thatnks alot

-kbcubs-
With out programing i could not live.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: <help> is there a way to...

 
0
  #2
Jul 25th, 2006
lookup for the keyword goto

But using goto for looping is very very bad practice. For looping you can use the for, while, do-while keywords. It is much easier to understand and easier to maintain than goto.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 37
Reputation: wingwarp is an unknown quantity at this point 
Solved Threads: 0
wingwarp's Avatar
wingwarp wingwarp is offline Offline
Light Poster

Re: <help> is there a way to...

 
0
  #3
Jul 25th, 2006
ok thanks wolf pack

-kbcubs-
With out programing i could not live.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: <help> is there a way to...

 
1
  #4
Jul 25th, 2006
Why couldn't you split your code into seperate methods and execute a certain method when you need it? As Wolf said, goto is bad practice and I consider it old school :cheesy:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC