void inputqwestions(test **o, test **q,test *qw)
{
FILE *f;
f=fopen("qwestions.txt","a+");
system("cls");
test *current = NULL;
if (!(current = (test *)malloc(sizeof( test))))
return;
printf("Введите вопрос\n");
scanf("%s",current->qwestion);
fprintf(f,"%s",current->qwestion);
printf("Введите вид ответа(0-тестовый 1 -вариант где нужно ввести слово)");
if(getch()!='0')
{
printf("Введите номер правильного ответа");
scanf("%d",qw->variant);
fprintf(f,"%d\n",qw->variant);
}
else
{
printf("Введите слово отвечающее на вопрос");
scanf("%s",qw->vord);
fprintf(f,"%s\n",qw->vord);
}
printf("Количество баллов за данный вопрос");
fscanf(f,"%d",¤t->grade);
AddQwestionToQueue(o, q, current);
fclose(f);
}