О
Size: a a a
О
О
struct student StudentForWrite[5] = { [0] = {"Borchenko", 1, 1992, 23}, [1] = {"Putin", 3, 1895, 3 },
[2] = {"Ibragimov", 4, 1958, 88},[3] = {"Rogozin ", 5, 1658, 78 },[4] = {"Tkachuk ", 2, 1992, 79} };
О
О
struct student StudentForRead[5];
struct student StudentForWrite[5] = { [0] = {"Borchenko", 1, 1992, 23}, [1] = {"Putin", 3, 1895, 3 },
[2] = {"Ibragimov", 4, 1958, 88},[3] = {"Rogozin ", 5, 1658, 78 },[4] = {"Tkachuk ", 2, 1992, 79} };
FILE* pf;
pf = fopen("student.txt", "wb");
fwrite(StudentForWrite, sizeof(StudentForWrite), 1, pf);
fclose(pf);
pf = fopen("student.txt", "rb");
fread(StudentForRead, sizeof(StudentForRead), 1, pf);
О
IZ
template <typename T>```
void row<T>::backward()
{
int iOffset = 1;
this -> backward(iOffset);
}
IZ
struct student StudentForRead[5];
struct student StudentForWrite[5] = { [0] = {"Borchenko", 1, 1992, 23}, [1] = {"Putin", 3, 1895, 3 },
[2] = {"Ibragimov", 4, 1958, 88},[3] = {"Rogozin ", 5, 1658, 78 },[4] = {"Tkachuk ", 2, 1992, 79} };
FILE* pf;
pf = fopen("student.txt", "wb");
fwrite(StudentForWrite, sizeof(StudentForWrite), 1, pf);
fclose(pf);
pf = fopen("student.txt", "rb");
fread(StudentForRead, sizeof(StudentForRead), 1, pf);
IZ
struct student StudentForRead[5];
struct student StudentForWrite[5] = { [0] = {"Borchenko", 1, 1992, 23}, [1] = {"Putin", 3, 1895, 3 },
[2] = {"Ibragimov", 4, 1958, 88},[3] = {"Rogozin ", 5, 1658, 78 },[4] = {"Tkachuk ", 2, 1992, 79} };
FILE* pf;
pf = fopen("student.txt", "wb");
fwrite(StudentForWrite, sizeof(StudentForWrite), 1, pf);
fclose(pf);
pf = fopen("student.txt", "rb");
fread(StudentForRead, sizeof(StudentForRead), 1, pf);
struct student StudentForWrite[5] = {
{"Borchenko", 1, 1992, 23},
{"Putin", 3, 1895, 3 },
{"Ibragimov", 4, 1958, 88},
{"Rogozin ", 5, 1658, 78 },
{"Tkachuk ", 2, 1992, 79}
};
О
D
struct student StudentForWrite[5] = {
{"Borchenko", 1, 1992, 23},
{"Putin", 3, 1895, 3 },
{"Ibragimov", 4, 1958, 88},
{"Rogozin ", 5, 1658, 78 },
{"Tkachuk ", 2, 1992, 79}
};
D
LA
IZ
О
D
IZ
AM
IZ
DK
LA