![]() |
|
#1
|
|||
|
|||
Math not processing entries properlyI am trying to use a derived class to:
1. enter an X and Y point, then print out the points 2. enter a radius, then print out the radius, diameter and circumference As you probably can tell I am very new to programming. I looked at some related posts and tried to incorporate them into my code. However, I am missing a something. I need help with that "something". When I run the program it apprears as if everything is working until the results for each of the outputs. It seems as if the math is not processing the entries properly. Any help would be appreciated. Thanks. btw I am using DevC++. CPP / C++ / C Code:
Last edited by LuciWiz : 26-Apr-2006 at 02:48.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
||||
|
||||
Re: Math not processing entries properlyWhere do you set the values of the object members? You acquired the input from the user, but never copied the values to the objects. Look at the print function: it uses some variables, which you must assign a value too; what member functions would you use to set the variables, and where?
Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
|||
|
|||
Re: Math not processing entries properlyThanks for the help. It seems to be working fine now.
CPP / C++ / C Code:
Last edited by LuciWiz : 26-Apr-2006 at 11:28.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The