C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 14th, 2005, 01:01 AM
ARKON_C_student ARKON_C_student is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 9 ARKON_C_student User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 8 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old February 14th, 2005, 01:58 AM
B-Con's Avatar
B-Con B-Con is offline
Crypto-Con
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Apr 2004
Location: UC Davis
Posts: 6,668 B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level)B-Con User rank is General 1st Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 22 h 49 m 36 sec
Reputation Power: 1015
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.
)

Reply With Quote
  #3  
Old February 14th, 2005, 06:10 AM
DaWei_M's Avatar
DaWei_M DaWei_M is offline
Permanently Banned
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jan 2004
Location: Central New York. Texan via Arizona, out of his element!
Posts: 7,351 DaWei_M User rank is Sergeant (500 - 2000 Reputation Level)DaWei_M User rank is Sergeant (500 - 2000 Reputation Level)DaWei_M User rank is Sergeant (500 - 2000 Reputation Level)DaWei_M User rank is Sergeant (500 - 2000 Reputation Level)DaWei_M User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 19 h 39 m 15 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Please read the post for new users.

Reply With Quote
  #4  
Old February 15th, 2005, 05:35 PM
nnxion's Avatar
nnxion nnxion is offline
Last Day: May 29, 2005
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2004
Location: elemental sphere
Posts: 740 nnxion User rank is Lance Corporal (50 - 100 Reputation Level)nnxion User rank is Lance Corporal (50 - 100 Reputation Level)nnxion User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 Days 7 h 20 m 20 sec
Reputation Power: 5
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Creditcard?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT