solution to problem for verifying answer

C

curiousEngine

Hi.
Am new to C++.
Was trying some problems and wanted to verify the correct solution for
this problem on the group:

Write a program which reads a sequence of integers and counts how many
there are

thank you all.
 
J

Jim Langston

curiousEngine said:
Hi.
Am new to C++.
Was trying some problems and wanted to verify the correct solution for
this problem on the group:

Write a program which reads a sequence of integers and counts how many
there are

If you wish to verify the correct solution for the problem, we need to see
your code. We will not do your homework for you.
 
K

Kai-Uwe Bux

curiousEngine said:
Hi.
Am new to C++.
Was trying some problems and wanted to verify the correct solution for
this problem on the group:

Write a program which reads a sequence of integers and counts how many
there are

a) Test your program on some small cases. It should be fairly easy to tell
whether the program yields the right answers.

b) There is more than one solution. Thus, if anybody should post something,
chances are that it will differ significantly from your solution. Even in
that case, both solutions may (or may not) be correct.

c) The easiest way to use this group to verify your code, is to post it and
have it criticized. In fact, that is how it works over here. Please read
the FAQ on how to post in this group for details.


Best

Kai-Uwe Bux
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

a) Test your program on some small cases. It should be fairly easy to tell
whether the program yields the right answers.

b) There is more than one solution. Thus, if anybody should post something,
chances are that it will differ significantly from your solution. Even in
that case, both solutions may (or may not) be correct.

c) The easiest way to use this group to verify your code, is to post it and
have it criticized. In fact, that is how it works over here. Please read
the FAQ on how to post in this group for details.

And the FAQ can be found here: http://www.parashift.com/c++-faq-lite/
Pay special attention to section 5, but take a look at the other
sections too, you can save a lot of time by looking in the FAQ before
asking questions since many are already answered.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top