there is a structure:

struct Student { char name[N]; // имя char surname[N]; // фамилия char patronymic[N]; // отчество char sex; // пол float year; // год рождения int course; // курс }; 

Trying to fill:

  • Method 1:

     Students s[10]={ { "Иван", "Крузенштерн", "Федерович", 'Ч', 1770, 5 }, //идентификатор Students не определен { "Алекс", "Морган", "Андреевич", 'Ч', 1990, 3 }, { "Элеонора", "Коваленко", "Юрьевна", 'Ж', 1996, 1 }, { "Петро", "Данилюк", "Степаныч", 'Ч', 1997, 1 }, { "Сигизмунд", "Варшавский", "Федерович",'Ч', 1987, 3 }, { "Мирон", "Федоров", "Федерович", 'Ч', 1985, 3 }, { "Конан", "Варвар", "Бугаевич", 'Ч', 1994, 2 }, { "Артур", "Менетил", "Андреевич", 'Ч', 1820, 5 }, { "Тирион", "Ланнистер", "Федерович", 'Ч', 1974, 4 }, { "Андрей", "Штальдер", "Данилович", 'Ч', 1870, 5 }}; 
  • Method 2:

     Student s[10]; s[0] = { "Иван", "Крузенштерн", "Федерович", 'Ч', 1770, 5 }; //требуется выражение s[1] = { "Алекс", "Морган", "Андреевич", 'Ч', 1990, 3 }; //требуется выражение s[2] = { "Элеонора", "Коваленко", "Юрьевна", 'Ж', 1996, 1 }; //требуется выражение s[3] = { "Петро", "Данилюк", "Степаныч", 'Ч', 1997, 1 }; //требуется выражение s[4] = { "Сигизмунд", "Варшавский", "Федерович",'Ч', 1987, 3 }; //требуется выражение s[5] = { "Мирон", "Федоров", "Федерович", 'Ч', 1985, 3 }; //требуется выражение s[6] = { "Конан", "Варвар", "Бугаевич", 'Ч', 1994, 2 }; //требуется выражение s[7] = { "Артур", "Менетил", "Андреевич", 'Ч', 1820, 5 }; //требуется выражение s[8] = { "Тирион", "Ланнистер", "Федерович", 'Ч', 1974, 4 }; //требуется выражение s[9] = { "Андрей", "Штальдер", "Данилович", 'Ч', 1870, 5 }; //требуется выражение 

Neither the way nor the way it turns out. Help me fix it.

Thank you in advance.

Closed due to the fact that off-topic participants αλεχολυτ , user194374, aleksandr barakin , pavel , Nofate 14 Dec '16 at 15:25 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - αλεχολυτ, Community Spirit, aleksandr barakin, pavel, Nofate
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • What is the value of N? - Vlad from Moscow
  • @aredBay The error message is clear enough. The structure name is Student, not Students. - Vlad from Moscow

2 answers 2

The error message is clear enough. The structure name is Student , not Students . Use the correct name.

 Student s[10]={{ "Иван", "Крузенштерн", "Федерович", 'Ч', 1770, 5 }, ^^^^^^^ //... 
  • God, thank you. It's time to sleep ... - JaredBay

Well, if you suddenly want through an assignment - then

 Student s[10]; s[0] = Student{ "Иван", "Крузенштерн", "Федерович", 'Ч', 1770, 5 };