a c++ solution

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2009
Posts: 10
Reputation: tag5 is an unknown quantity at this point 
Solved Threads: 0
tag5 tag5 is offline Offline
Newbie Poster

a c++ solution

 
0
  #1
Jul 4th, 2009
Good, morning every one, in this nice forum;

I solved a c++ solution but i don't understand the idea of the program,
so i need help to understand the steps and the use of this program.
Thankyou,
all.
Last edited by tag5; Jul 4th, 2009 at 4:53 am.
Really, admitting the best ever IT forum i have ever seen......
oh... Great to be a part of it.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: tag5 is an unknown quantity at this point 
Solved Threads: 0
tag5 tag5 is offline Offline
Newbie Poster

Re: a c++ solution

 
0
  #2
Jul 4th, 2009
  1. main()
  2. {
  3. int x,n, count=0;
  4.  
  5. n=n+1
  6. nxt: cout<<"x=..";
  7. cin>>x;
  8. if(x>60)
  9. count=count+1;
  10. if(n==10)
  11. cout<<count;
  12. else
  13. goto nxt;
  14. }
Last edited by Ancient Dragon; Jul 4th, 2009 at 10:08 am. Reason: add code tags
Really, admitting the best ever IT forum i have ever seen......
oh... Great to be a part of it.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,570
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 455
Moderator
adatapost's Avatar
adatapost adatapost is online now Online
Posting Maven

Re: a c++ solution

 
0
  #3
Jul 4th, 2009
tag5,

Good morning. You are welcome in this nice forum. Your program source code must be surrounded with bb code tag. Read this How to use bb code tags?
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: tag5 is an unknown quantity at this point 
Solved Threads: 0
tag5 tag5 is offline Offline
Newbie Poster

Re: a c++ solution

 
0
  #4
Jul 4th, 2009
sorry i don't now how to use it please reply,
Really, admitting the best ever IT forum i have ever seen......
oh... Great to be a part of it.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: a c++ solution

 
0
  #5
Jul 4th, 2009
Originally Posted by tag5 View Post
sorry i don't now how to use it please reply,
Look at the link in adatapost's post
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: tag5 is an unknown quantity at this point 
Solved Threads: 0
tag5 tag5 is offline Offline
Newbie Poster

Re: a c++ solution

 
0
  #6
Jul 4th, 2009
Look at the link in adatapost's post???
Last edited by tag5; Jul 4th, 2009 at 6:02 am.
Really, admitting the best ever IT forum i have ever seen......
oh... Great to be a part of it.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,570
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 455
Moderator
adatapost's Avatar
adatapost adatapost is online now Online
Posting Maven

Re: a c++ solution

 
0
  #7
Jul 4th, 2009
Originally Posted by tag5 View Post
Look at the link in adatapost's post???
BB code tags : Wrap up your source code with code tags. You see the # icon at toolbar with post editor.
Or Read this - How to use code tag?

  1. int main()
  2. {
  3. int x,n, count=0;
  4. n=n+1;
  5. nxt: cout<<"x=..";
  6.  
  7. cin>>x;
  8. if(x>60)
  9. count=count+1;
  10. if(n==10)
  11. cout<<count;
  12. else
  13. goto nxt;
  14. }
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 9
Reputation: prime1999 is an unknown quantity at this point 
Solved Threads: 0
prime1999 prime1999 is offline Offline
Newbie Poster

Re: a c++ solution

 
0
  #8
Jul 4th, 2009
It will only do this forever: output "x=.." and input a number
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,343
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1460
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: a c++ solution

 
0
  #9
Jul 4th, 2009
Originally Posted by tag5 View Post
Look at the link in adatapost's post???
Yes -- you see those blue letters? That a link, just take your mouse and click on it.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: a c++ solution

 
0
  #10
Jul 4th, 2009
Originally Posted by tag5 View Post
Look at the link in adatapost's post???
Do you know how to use a computer? (I hope so)
Do you know what 'internet' is? (I hope so)
If you can answer yes to both of these questions, then try to answer the following question:
Do you know what a link is? (On this forum links are marked in blue, and when you move your mouse pointer over it, it will be underlined)
Just click on it, and your browser (this is the program on your computer that you use to display webpages, with you this is probably called: 'Internet Explorer') will display a new web page.
Then you start reading this web page.

>I solved a c++ solution but i don't understand the idea of the program,
so i need help to understand the steps and the use of this program.

So, you're saying you solved it, but you don't understand your own solution?
Strange
Last edited by tux4life; Jul 4th, 2009 at 12:06 pm.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
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