Home > Back-end >  This two days in writing a student status management system have a lot of trouble, bosses and see ho
This two days in writing a student status management system have a lot of trouble, bosses and see ho

Time:10-07


for (int i=0; I & lt; The count. I++)
{
Cout & lt; <"Enter the name:";
Cin & gt;> Student [I]. Name;
{
Stu. Open (student [I]. Name + ". TXT ");
Cout & lt; <"Enter the student_id:";
Cin & gt;> Student [I] student_id;
Stu & lt; Cout & lt; <"Enter the sex:";
Cin & gt;> Student [I] sex;
Stu & lt; <"" & lt; Cout & lt; <"Enter the age:";
Cin & gt;> Student [I] the age;
Stu & lt; <"" & lt; Cout & lt; <"Enter the grade:";
Cin & gt;> Student [I] grade;
Stu & lt; <"" & lt; Cout & lt; Cin & gt;> Student [I] address;
Stu & lt; <"" & lt; Stu. Close ();
Cout & lt; <"Sure? Y/n ";
Char aaaa.
Cin & gt;> Aaaa.
If (aaaa=='n' | | aaaa=='n')
{
Wstring aaa=student [I]. Name + "1. TXT";//don't know how to give parameters here
LPCWSTR STR=aaa. C_str ();
The DeleteFile (STR);
}
}
}
 

CodePudding user response:


Here txt1 document not saved content, I don't know why
  • Related