diff --git a/a3/program.c b/a3/program.c index c4ab296..55e2dfa 100644 --- a/a3/program.c +++ b/a3/program.c @@ -54,6 +54,7 @@ int main() else if(sscanf(line, "%s %s", processedName, processedSurname) == 2) { strcpy(student[i].name, processedName); + strcpy(student[i].surname, processedSurname); strncat(student[i].name, &newLineSymbol, 1); i++; }