943,513 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 470
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 4th, 2009
0

a c++ solution

Expand Post »
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.
Similar Threads
Reputation Points: 8
Solved Threads: 0
Newbie Poster
tag5 is offline Offline
10 posts
since May 2009
Jul 4th, 2009
0

Re: a c++ solution

C++ Syntax (Toggle Plain Text)
  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
Reputation Points: 8
Solved Threads: 0
Newbie Poster
tag5 is offline Offline
10 posts
since May 2009
Jul 4th, 2009
0

Re: a c++ solution

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?
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 4th, 2009
0

Re: a c++ solution

sorry i don't now how to use it please reply,
Reputation Points: 8
Solved Threads: 0
Newbie Poster
tag5 is offline Offline
10 posts
since May 2009
Jul 4th, 2009
0

Re: a c++ solution

Click to Expand / Collapse  Quote originally posted by tag5 ...
sorry i don't now how to use it please reply,
Look at the link in adatapost's post
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Jul 4th, 2009
0

Re: a c++ solution

Look at the link in adatapost's post???
Last edited by tag5; Jul 4th, 2009 at 6:02 am.
Reputation Points: 8
Solved Threads: 0
Newbie Poster
tag5 is offline Offline
10 posts
since May 2009
Jul 4th, 2009
0

Re: a c++ solution

Click to Expand / Collapse  Quote originally posted by tag5 ...
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?

C++ Syntax (Toggle Plain Text)
  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. }
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 4th, 2009
0

Re: a c++ solution

It will only do this forever: output "x=.." and input a number
Reputation Points: 22
Solved Threads: 0
Newbie Poster
prime1999 is offline Offline
18 posts
since Jul 2009
Jul 4th, 2009
0

Re: a c++ solution

Click to Expand / Collapse  Quote originally posted by tag5 ...
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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,945 posts
since Aug 2005
Jul 4th, 2009
0

Re: a c++ solution

Click to Expand / Collapse  Quote originally posted by tag5 ...
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.
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Changing elements of lists
Next Thread in C++ Forum Timeline: VC++ CODE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC