Topic 9: simple teacher information management system
Requirements
1, define a class TeacherList
2, can implement a simple increase teachers'
3, to implement a simple find teachers
4, teachers can implement a simple delete
5, to use binary file read and write operations
CodePudding user response:
Fail to find demon elder brother is not
CodePudding user response:
Demon elder brother who is it?
CodePudding user response:
reference 1st floor sololie response: find failed the demon elder brother don't demon elder brother is a great god? CodePudding user response:
This edition is spot bamboo CodePudding user response:
The building Lord, you are all commonly used what IDE? Or simple IDE said your teacher use? CodePudding user response:
reference 5 floor KFRGHT reply: the building Lord, you are all commonly used what IDE? Or simple IDE said your teacher use? IDE? CodePudding user response:
IDE (integrated development environment)=development tool Which development software? CodePudding user response:
The reference 7 floor like80902 response: IDE (integrated development environment)=development tool Which development software? well, the teacher used vc + + 6.0, myself with visual studio 2013 CodePudding user response:
The reference 7 floor like80902 response: IDE (integrated development environment)=development tool Which development software? we just do a simple course design, have the code CodePudding user response:
The reference 4 floor sololie reply: benban spot bamboo the forehead? The eldest brother can help me to write about the topic of code? CodePudding user response:
brother, I'll give you a written code, and other methods may be different, but is easy to extend and organizing data: struct G_UTHK { Bool J_DQUG;//true=this record effective Int J_NWFT;//gender, male, 0=1=female, 2=bisexual, 3=male female, 4=female to male, the rest of the secret= Would be J_PTEM [128].//name Would be J_QWLB [19].//date of birth Would be J_CXVE [256].//note }; G_UTHK G_OESR [1]. The String FileName=ChangeFileExt (Application - & gt; ExeName, L. "dat"); TFileStream * Save_File; Void __fastcall TForm1: : FormCreate (TObject * Sender) { Save_File=new TFileStream (FileName, fmOpenReadWrite); } //-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Void __fastcall TForm1: : FormClose (TObject * Sender, TCloseAction & amp; The Action) { The delete Save_File; } //-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Void __fastcall TForm1: : Button1Click (TObject * Sender) { //G_OESR [0]. J_DQUG=true;//true=this record effective //G_OESR [0]. J_NWFT=1;//gender, male, 0=1=female, 2=bisexual, 3=male female, 4=female to male, the rest of the secret= Wmemset (G_OESR [0]. J_PTEM, '\ 0', 128);//name Wmemset (G_OESR [0]. J_QWLB, '\ 0', 19).//date of birth Wmemset (G_OESR [0]. J_CXVE, '\ 0', 256);//note G_OESR [0]. J_DQUG=CheckBox1 - & gt; Checked; G_OESR [0]. J_NWFT=SpinEdit1 - & gt; The Value; Wcscpy (G_OESR [0]. J_PTEM Edit1 - & gt; Text. W_str ()); Wcscpy (G_OESR [0]. J_QWLB Edit2 - & gt; Text. W_str ()); Wcscpy (G_OESR [0]. J_CXVE Edit3 - & gt; Text. W_str ()); Save_File - & gt; The Position=Save_File - & gt; The Size;//position to the end Save_File - & gt; WriteBuffer (& amp; G_OESR, sizeof (G_OESR)); } CodePudding user response:
What I wanted to add in the structure of extension freely CodePudding user response:
http://blog.sina.com.cn/s/blog_538b279a010009b1.html Copy the list class, put the name change CodePudding user response:
This list is a little complicated, or my simple and practical CodePudding user response:
You obviously do not conform to the requirements, the somebody else want a c + + programs, or vs platform, certainly cannot use VCL, 8 also not use MFC, This requirement is to review your list and file IO operations, otherwise directly inherited a STD: : list CodePudding user response:
the somebody else say, have the code CodePudding user response:
reference 1st floor sololie response: find failed the demon elder brother don't Fail to find demon elder brother is not CodePudding user response:
refer to 17th floor sololie response: Quote: refer to 1st floor sololie response: Fail to find demon elder brother is not nullnullnullnullnullnullnull