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 2 1767
stanlo wrote: 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.
would someone kindly propose such a program to me, then if i have about 3 propositions i will learn by diversity.thak in advance
--
Cheers
--
Hewson::Mike
"This letter is longer than usual because I lack the time to make it
shorter" - Blaise Pascal
"stanlo" <mu******@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike |
last post by:
I am sure that I am making a simple boneheaded mistake and I would
appreciate your help in spotting in. I have just installed
apache_2.0.53-win32-x86-no_ssl.exe
php-5.0.3-Win32.zip...
|
by: edgrsprj |
last post by:
PROPOSED EARTHQUAKE FORECASTING
COMPUTER PROGRAM DEVELOPMENT EFFORT
Posted July 11, 2005
My main earthquake forecasting Web page is:
http://www.freewebz.com/eq-forecasting/Data.html
...
|
by: Tom Lee |
last post by:
Hi,
I'm new to .NET 2003 compiler. When I tried to compile my
program using DEBUG mode, I got the following errors in the
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\include\xdebug...
|
by: christopher diggins |
last post by:
I am wondering if any can point me to any open-source library with program
objects for C++ like there is in Java? I would like to be able to write
things like
MyProgram1 >> MyProgram2 >>...
|
by: Eric Whittaker |
last post by:
hi all,
im trying to write my first c++ program. a success, but i can't get the
window to stay open after user enters input. it just automatically closes.
right now the end of my program looks...
|
by: Hemal |
last post by:
Hi All,
I need to know the memory required by a c program. Is there any
tool/utility which can give me the memory usage in terms of DATA
segment, TEXT segment, BSS segment etc.
I am working...
|
by: ibtc209 |
last post by:
I just started programming in C, and I need some help with this problem.
Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s
first card, and...
|
by: Banfa |
last post by:
Posted by Banfa
The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
|
by: amitpatel66 |
last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations:
Concurrent programs can be executed...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |