Aktualizovat a3/program.c
This commit is contained in:
parent
8c0a242914
commit
0b61a0856f
@ -30,7 +30,7 @@ int main()
|
|||||||
{
|
{
|
||||||
if(sscanf(line, "%d", &studentsAmount) == 1) { continue; }
|
if(sscanf(line, "%d", &studentsAmount) == 1) { continue; }
|
||||||
}
|
}
|
||||||
else if(sscanf(line, "%s", &processedName) == 1)
|
else if(sscanf(line, "%s", processedName) == 1)
|
||||||
{
|
{
|
||||||
strcpy(student[i].name, processedName);
|
strcpy(student[i].name, processedName);
|
||||||
strncat(student[i].name, &newLineSymbol, 1);
|
strncat(student[i].name, &newLineSymbol, 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user