my program

S

stanlo

Hallo to everyone, i am just begining to learn c++ even though i did
pascal when i studied mathematics in the univesity.i just took on my
self a project which writing a c++ program which does addition,
subtraction, multiplication and division.Highest number of input
characters should be 80 and the program should output eror meseges
like, when division by zero is done,or catch wrong user inputs like
letters of the alphabet.Please i have written one but it does not run
would someone kindly propose such a program to me, then if i have about
3 propositions i will learn by diversity.thak in advance
 
M

Mike Hewson

stanlo said:
Hallo to everyone, i am just begining to learn c++ even though i did
pascal when i studied mathematics in the univesity.i just took on my
self a project which writing a c++ program which does addition,
subtraction, multiplication and division.Highest number of input
characters should be 80 and the program should output eror meseges
like, when division by zero is done,or catch wrong user inputs like
letters of the alphabet.Please i have written one but it does not run

Show us the piece ( hopefully not too big ) that, in your view, is
problematic.
 
M

Mike Wahler

stanlo said:
Hallo to everyone, i am just begining to learn c++ even though i did
pascal when i studied mathematics in the univesity.i just took on my
self a project which writing a c++ program which does addition,
subtraction, multiplication and division.Highest number of input
characters should be 80 and the program should output eror meseges
like, when division by zero is done,or catch wrong user inputs like
letters of the alphabet.

You'll find that the more exact a specification is for a program,
the easier it is to implement. I find your description above a
bit vague.
Please i have written one but it does not run

I, and many others here are very willing to help you
fix your program. But first we need to *see* it.
Post the code, and ask specific questions. If your
compiler gives errors, post those too, and indicate
to which line(s) they refer. If the program compiles
but does not behave as desired, describe what you
want it to do, and what it does instead.
would someone kindly propose such a program to me,

I propose that you write such a program. Or are you
asking someone to do it for you? Not likely to happen
here. That would not help you learn.
then if i have about
3 propositions

I think you mean 'solutions', not 'propositions'.
i will learn by diversity.

IMO you'll learn far more by doing. Go ahead and make
some mistakes, and try to learn froom them.

Hint: Start small. Don't try to do it all at once.
Choose one small feature, and try to write a program which
implements it. For example, just do the part that accepts
input first. Don't add more until it works correctly.
This is the way the professioals do it, and so should you.

You'll also probably be able to get some good help from reading
the C++ FAQ:
http://www.parashift.com/c++-faq-lite/

HTH,
-Mike
 

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
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top