curiousEngine wrote:
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