User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 427,939 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,851 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1404 | Replies: 42 | Solved
Reply
Join Date: Nov 2007
Posts: 882
Reputation: mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough 
Rep Power: 5
Solved Threads: 180
mitrmkar mitrmkar is offline Offline
Practically a Posting Shark

Re: Arrays

  #41  
Jul 23rd, 2008
Try not to use the goto , have you considered using break instead
for(int i=0; i<10; i++) {
 if (i > 0)
  break;    // <- breaks out of the for loop ...
else
  cout << i;
}
Reply With Quote  
Join Date: Dec 2007
Posts: 365
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Re: Arrays

  #42  
Jul 23rd, 2008
ya I have BUT my problems are:
- nested if statements
- skip code

I really prefer not to use a bool on/off trigger as I had alot of problems before when I did but I guess its a last resort, if no one can come up with a solution.
"You never stop learning" - OmniX
Reply With Quote  
Join Date: Dec 2007
Posts: 365
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Re: Arrays

  #43  
Jul 24th, 2008
I would like to say a special thankyou to everyone who has helped me the last 2 weeks.

A special thankyou to niek_e, as without him I would have been lost before started, thankyou so much.

Takecare and all the best everyone.

Till my next C++ problem!!!

(Lets hope its not too soon hahaha)
"You never stop learning" - OmniX
Reply With Quote  
Reply

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

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 6:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC