473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

solution to problem for verifying answer

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.

Sep 18 '07 #1
3 1381
"curiousEngine" <cu************@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
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.
Sep 18 '07 #2
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
Sep 18 '07 #3
On 2007-09-18 10:12, Kai-Uwe Bux wrote:
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.
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.

--
Erik Wikström
Sep 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function...
7
by: Federico G. Babelis | last post by:
Hi All: I have this line of code, but the syntax check in VB.NET 2003 and also in VB.NET 2005 Beta 2 shows as unknown: Dim local4 As Byte Fixed(local4 = AddressOf dest(offset)) ...
9
by: Carter Smith | last post by:
http://www.icarusindie.com/wiki/index.php/Server-Side_Javascript_Check Sample source included This method requires that your pages are PHP enabled and you have mySQL. Although I suppose you...
2
by: David | last post by:
Hello, I have an application that has been running for years and had little problem with it. We've been retesting the latest code under Windows 2003 and found a surprise. There is a certain...
2
by: Al_P via DotNetMonster.com | last post by:
I have: Win2K Office2000 Working in VB.Net (2003) My .Net project has a reference to Word 9.0 Instantiating things in a simple and straightforward manner: Dim word as Word.Application Dim...
5
by: Geisler, Jim | last post by:
So, as far as I know, PostgreSQL does not have any way of verifying the loss of referential integrity. Are there any recommended methods or utilities for checking referential integrity in a...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
4
by: situ | last post by:
Hello all, i have a column in a table which stores tag lines which are usually less than 500 charecter. when we display the data through the browser some character display as "boxes" or junks....
0
by: steven acer | last post by:
Hi i'm trying to sign a file and verify its signature with a DSA key. But i don't know if i'm doing it the right way !. I tried 2 different ways but i either got an error or simply the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.