所属分类:
文章/文档
开发工具:C/C++
文件大小:1KB
下载次数:0
上传日期:2019-12-30 16:33:15
说明: 文件存取:设计一个 student 类,用这个类作为数据类型产生一个向量。为简单起见,只要求输入学生学号和成绩,将这些信息存入向量中,然后将向量的内容写入文件 stud.txt 中,最后将向量和文件的内容进行比较,验证存取文件的正确性。设计工程文件为 student,它含有头文件 student.h 和源文件 student.cpp。
(File access: design a student class, and use this class as the data type to generate a vector. For the sake of simplicity, only the student number and grade are required to be input, and these information is stored in the vector, and then the content of the vector is written into the file stud.txt. Finally, the vector and the content of the file are compared to verify the correctness of accessing the file. The design project file is student, which contains the header file student. H and the source file student.cpp.)
文件列表:
1.txt, 1933 , 2019-12-30
2.txt, 404 , 2019-12-30