String issue

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2009
Posts: 31
Reputation: itzaaron is an unknown quantity at this point 
Solved Threads: 0
itzaaron itzaaron is offline Offline
Light Poster

String Issue (or maybe this is an array)

 
0
  #11
Oct 25th, 2009
Have I stumped everyone?
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,416
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 248
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c
 
1
  #12
Oct 25th, 2009
for ( int x=0; x<3; x++ );
Do you know what the semicolon does to your intended loop?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 31
Reputation: itzaaron is an unknown quantity at this point 
Solved Threads: 0
itzaaron itzaaron is offline Offline
Light Poster
 
0
  #13
Oct 25th, 2009
Originally Posted by Dave Sinkula View Post
for ( int x=0; x<3; x++ );
Do you know what the semicolon does to your intended loop?
No I don't. But it is working now thank you!
Last edited by itzaaron; Oct 25th, 2009 at 2:01 pm.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,416
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 248
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c
 
0
  #14
Oct 25th, 2009
Originally Posted by itzaaron View Post
Originally Posted by Dave Sinkula View Post
for ( int x=0; x<3; x++ );
Do you know what the semicolon does to your intended loop?
No I don't. But it is working now thank you!
This would be an equivalent:
  1. for ( int x=0; x<3; x++ )
  2. {
  3. /* empty loop */
  4. }
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 31
Reputation: itzaaron is an unknown quantity at this point 
Solved Threads: 0
itzaaron itzaaron is offline Offline
Light Poster
 
0
  #15
Oct 25th, 2009
Okay, well I would like to thank everyone who helped. I am adding to everyone's rep and marking this one as solved.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC