hi i need help in finishing the program code using a class called Student that will capture the following details;
1. registration number
2. student name
3. dob(date of birth)
4. course registered eg BSIT
5. year of admission
6. current year of study.
Program should read records for at least 5 student and display in table form
This is what i have so far. i am a student btw. would appreciate your help.
................................................................................
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;
class Student
{
private:
string name, reg, study, course; int dob, yoa;
public:
Student(string, int);
void getdata(); void display();
};
void Student::getdata()
{
cout<<"\n Enter Student Registration:"<<endl;
cin>>reg;
cout<<"\n Enter Student Name:"<<endl;
cin>>name;
cout<<"\n Enter Date of Birth:"<<endl;
cin>>dob;
cout<<"\n Enter Course:"<<endl;
cin>>course;
cout<<"\n Enter Year of Admission:"<<endl;
cin>>yoa;
cout<<"\n Enter Year of Study:"<<endl;
cin>>study;
}