Home > Software engineering >  Ask a student information management system, I do not bottom go to, to the fourth request which the
Ask a student information management system, I do not bottom go to, to the fourth request which the

Time:10-06

Topic: student information system
Create a single document information storage and display of students application, project called kaocha, complete student information input and query,

Requirements:
1. The window contains a "number", "name", "age", "gender", and "grade" in the edit box, and "input" and "display" button;
2. In the "number" edit box enter the serial number of students, can find the display;
3. Input the student's information in the edit box, click the "enter" button, the input content stored in the document class a student information in class object in the array, and deposited in the text file student_information. TXT.
4. The text file to read and write the document serialization;
5. The main menu editor contains clear loophole menu, click delete all of the students' information, will be deleted text;
6. In the main menu options to open the file, the function of information support from batch text read in students;
7. Can input corresponding photos of students at the same time, display, add photos display function;

CodePudding user response:

CFile mFile;

Cstrings szDataPath=_T (" student_information. TXT ");

If (mFile. Open (szDataPath CFile: : modeRead))
{
CArchive arch (& amp; MFile CArchive: : load);

Read and write files

The arch. The Close ();

MFile. Close ();

return TRUE;
}

Should use CArchive is to read and write data
  • Related