RSS Forums RSS
Please support our C advertiser: Programming Forums
Views: 808 | Replies: 3
Reply
Join Date: Jul 2006
Posts: 36
Reputation: wingwarp is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
wingwarp's Avatar
wingwarp wingwarp is offline Offline
Light Poster

Help <help> is there a way to...

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

like:
loop;
"stuff"
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Tokyo, Japan
Posts: 1,481
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Rep Power: 8
Solved Threads: 102
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

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

  #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  
Join Date: Jul 2006
Posts: 36
Reputation: wingwarp is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
wingwarp's Avatar
wingwarp wingwarp is offline Offline
Light Poster

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

  #3  
Jul 25th, 2006
ok thanks wolf pack

-kbcubs-
With out programing i could not live.
Reply With Quote  
Join Date: Jun 2004
Location: H4x0rville
Posts: 2,105
Reputation: server_crash is on a distinguished road 
Rep Power: 9
Solved Threads: 18
server_crash's Avatar
server_crash server_crash is offline Offline
Postaholic

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:06 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC