1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/constasj-TLYZGradeSearch-Linux

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
start.cpp 743 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
JerryLee Отправлено 14.12.2020 16:19 34baeee
#include"main.hpp"
int tnum;
void start()
{
FILE *testio,*stuio;
if((testio=fopen("tests.txt","rb"))==NULL)
{
FILE *pul=fopen("tests.txt","wb");
fwrite(tt,sizeof(test),10,pul);
fclose(pul);
testio=fopen("tests.txt","rb");
}
if((stuio=fopen("stugrd.txt","rb"))==NULL)
{
FILE *pul=fopen("stugrd.txt","wb");
fwrite(stu,sizeof(student),10*MAX,pul);
fclose(pul);
stuio=fopen("stugrd.txt","rb");
}
fread(tt,sizeof(test),11,testio);
fread(stu,sizeof(student),10*MAX,stuio);
for(int i=0;i<10;i++)
{
for(int j=0;j<MAX;j++)
{
if(stu[i][j].state!=1) tt[i].alrstu=j-1;
}
}
for(int i=0;i<10;i++) if(tt[i].state!=1) tnum=i-1;
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/constasj-TLYZGradeSearch-Linux.git
git@api.gitlife.ru:oschina-mirror/constasj-TLYZGradeSearch-Linux.git
oschina-mirror
constasj-TLYZGradeSearch-Linux
constasj-TLYZGradeSearch-Linux
dev