Great idea !
i just create this code :
Code:
cout << "Enter the name of the file you want to create: ";
cin >> FileName;
ofstream Students(FileName, ios::out);
Students
<< "********************************************************************" << "\n"
<< "Student ID : " << user[info].id << "\n"
<< "Student First Name : " << user[info].firstName << "\n"
<< "Student Last Name : " << user[info].lastName << "\n"
<< "Student Day Of Birth : " << user[info].dob1 << "\n"
<< "Student Month Of Birth : " << user[info].dob2 << "\n"
<< "Student Year Of Birth : " << user[info].dob3 << "\n"
<< "********************************************************************" << "\n";
but,the problem is....how about option no 5 ( Show Student Information )
What input should I put ?
i think i wanna save student information file with their ID number.
so,it will be easier for user to use option no 5.
the problem is, how can i save student information file with their ID number ?