Computing.Net > Forums > Programming > C++ Initial development question...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ Initial development question...

Reply to Message Icon

Name: buckey
Date: November 20, 2004 at 13:51:55 Pacific
OS: xp
CPU/Ram: 256
Comment:

Hey gang, I am in the process of trying to figure out what is the best way to complete a project i will be working on. Anyway, I am building a calculator that will take in some equation and calculate it.

Parameters:
Must be OO.
Must hold last 20 equations.

Design so far:
So far, I am thinking I will use a switch statment in the client to take in a string(the equation) and pass it to my object that will disect it, meaning push it on to a stack, then do the calculation, then return the result to my client for display. Does this sound right so far?

Part I am unsure of:
If I want to go back and look at an equation i have already entered, then I am guessing In the client, that each equation entered should at that point instanciate my object and stuff it into a static array? This way, my equation and result will be stored for use later?

Anyway, hopefully you can see where my confusion lies. Any help or suggestions will be greatly appreciated. Thanks in advacne.




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


switch from real to prot... Java Programming... or?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ Initial development question...

c++ string manipulation question www.computing.net/answers/programming/c-string-manipulation-question/11524.html

C program developed on visual C++, Versi www.computing.net/answers/programming/c-program-developed-on-visual-c-versi/1005.html

C Program Simple Question (HELP...) www.computing.net/answers/programming/c-program-simple-question-help/10559.html