|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Creditcard?
Hi,
I new into c++ and i dont really know howto do this, This is the uml diagram: [img][http://AnimeXclusive.no-ip.com/CreditCard.gif[/img] So far my .H #ifndef CreditCard_H #define CreditCard_H class CreditCard{ public: //constructor CreditCard (nm : const char*.id : int, cred : double); void print() double getCredit() void pay (double : am); void load (double : am); private: char *name; int id; double credit; ); And this is my cpp: #include <iostream > #include <iomanip > #include "CreditKaart.h" void CreditKaart(Char *name, int id, double credit); { naam = name; id = id; CreditCard = Credit; ) void CreditCard { The problem is that i dont know how to write the cpp file im trying but its not working. i DONT want the code but i dont understand the uml. |
|
#2
|
||||
|
||||
|
hm, that image doesn't look like any UML that I know.... maybe you're supposed to create the functions that are listed at the bottom.....
__________________
- "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started. - Why know the ordinary when you can understand the extraordinary? - Sponsor my caffeine addiction! (36.70 USD received so far -- Latest donor: Mark Foxvog.) |
|
#3
|
||
|
Please read the post for new users.
|
|
#4
|
||||
|
||||
|
Did you get this from HVU? try creditcard
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Creditcard? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|