View Single Post
Old 06-20-2009, 01:37 AM   #1 (permalink)
xpressive11
Registered User
 
Join Date: Jun 2009
Posts: 3
OS: xp


need help to write this program

Write a c++ program which consists of two classes:
1. Date
2. Student
First class Date should contain three data members:
Day
Month
Year
Date also contain following member functions:
Setter function
Getter function
showdate()

Now second class Student should have following three data members:
ST_ID
Name
Ad_date
Where ID and Name are char pointer while Ad_date (Date of Admission) is of type Date.

Student class should contain two member functions:
Display()
setdate()
Now in main function create an object of Class Student and call the member functions with it.
--------------------------------------------------------------------------
Sample output:

Name: Ali
ID: BC020400000
Admission Date: 12-08-2008
xpressive11 is offline   Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here