-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentInfo.cpp
More file actions
25 lines (22 loc) · 799 Bytes
/
Copy pathStudentInfo.cpp
File metadata and controls
25 lines (22 loc) · 799 Bytes
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
#include "StudentInfo.h"
wstring StudentInfo::nextStudent() {
int gender = this->_gender.next();
wstring name = this->_fullname.next(gender);
wstring add = this->_address.next();
wstring telnum = this->_telnum.next();
wstring email = this->_email.next(name);
wstring gpa = this->_gpa.next();
Date date = this->_dob.Now();
int yob = date.getYear();
wstring dob = date.toString();
wstring id = this->_id.next(yob);
wstringstream builder;
builder << "Full Name: " << name << endl;
builder << "Student's ID: " << id << endl;
builder << "Date of birth: " << dob << endl;
builder << "Address: " << add << endl;
builder << "Telephone number: " << telnum << endl;
builder << "Email: " << email << endl;
builder << "GPA: " << gpa << endl;
return builder.str();
}