1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#include <string> // for memset
//Struct Declaration for stdDetails
struct stdDetails
{
// default constructor will automatically
// initialise member variables
stdDetails()
: stdNum(0)
, stdAge(0)
, conNum(0)
, amtPaid(0)
{
memset(fName, 0, 25);
memset(lName, 0, 25);
memset(resAdd, 0, 50);
memset(dBirth, 0, 10);
memset(nicNum, 0, 10);
memset(dateEnroll, 0, 10);
memset(corsSelect, 0, 25);
memset(payMethod, 0, 10);
memset(bksIssue, 0, 25);
}
int stdNum; //Student Registration Number
int stdAge; // Student Age
int conNum; // Student Contact Number
double amtPaid; // Amount Student Paid for the course
char fName[25]; // Student First Name
char lName[25]; // Student Last Name
char resAdd[50]; //Resident Address
char dBirth[10]; // Student Date Of Birth
char nicNum[10]; // Sudent National ID number
char dateEnroll[10]; // Student Enrollment date
char corsSelect[25]; // Course Selected
char payMethod[10];// Fee payment method
char bksIssue[25]; //Issued Books
};
|