Skip to content

Instantly share code, notes, and snippets.

@FrostDelta123
Created May 21, 2020 16:34
Show Gist options
  • Save FrostDelta123/724de8109192a37a2e84f5fb13b85876 to your computer and use it in GitHub Desktop.
Save FrostDelta123/724de8109192a37a2e84f5fb13b85876 to your computer and use it in GitHub Desktop.
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