Aktualizovat a3/program.c
This commit is contained in:
parent
cbaca8a22f
commit
fa4f2c4df8
@ -4,7 +4,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define BUFFER_SIZE 64
|
||||
#define STUDENT_SIZE 32
|
||||
#define STUDENT_SIZE 64
|
||||
|
||||
struct studentApplication
|
||||
{
|
||||
@ -66,6 +66,11 @@ int main()
|
||||
strcpy(student[i].surname, processedSurname);
|
||||
i++;
|
||||
}
|
||||
else if(sscanf(line, " %s", processedName) == 1)
|
||||
{
|
||||
strcpy(student[i].name, processedName);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
if (studentsAmount == 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user