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;
Cin & gt;> Student [I] sex;
Stu & lt; <"" & lt;
Cin & gt;> Student [I] the age;
Stu & lt; <"" & lt;
Cin & gt;> Student [I] grade;
Stu & lt; <"" & lt;
Stu & lt; <"" & lt;
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