我在第 60 行的作业中遇到了标题问题。请任何人尽快帮助我。
59 void storeFile();
60 {
61 cout<< "All the data members are stored in file." << endl;
62
63 ofstream outFile;
64 const char *outputFileName = ("record.txt");
65 outFile.open(outputFileName, ios::out);
66
67 if(!outFile)
68 {
69 cout<< "\nUnable to open the file." << outputFileName << endl;
70 }
71
72 else
73 {
74 outFile VUID; endl;
75 outFile campusID; endl;
76 outFile studentName; endl;
77 outFile fatherName; endl;
78 }
79 };
错误:第 60 行的 '{' 标记 c++ 之前的预期不合格 ID