Created
May 21, 2020 16:34
-
-
Save FrostDelta123/724de8109192a37a2e84f5fb13b85876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void FileUtil::test() { | |
FILE *file2; | |
file2 = fopen("person.dat", "r+"); | |
//Сделать нормальный счёт | |
int n = 1; | |
for(int i = 0; i < n; i++) { | |
struct student output1; | |
fread(&output1, sizeof(struct student), 1, file2); | |
cout << output1.sessions[0].subj[0] << endl; | |
} | |
fclose(file2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment