0

Create two structs с++

Create two structs struct Student which has - ID - Name - grade struct Subject which has - ID - name - number of students - students(pointer to Students` struct) Your task is to show all subjects, which contains the given students in the given range of grades, sorted by grade in ascending order. Have to use structs, pointers and dynamic memory allocation. Input n (how many subjects) [2 = n = 10] n-times subject id subject name 10 number of students all information about students searched_item range(in format of xxx-yyy) Output All subject, which contains the given student in the given range Example Input 5 101 Physics 2 1 Kate 100 2 Max 50 203 Economics 3 1 Kate 30 2 Max 70 3 Askar 80 304 C++ 2 3 Askar 100 1 Kate 10 409 Geography 3 1 Kate 40 4 Lucy 90 2 Max 86 1012 Math 2 1 Kate 90 3 Askar 50 Kate 30-80 Output 203 Economics 409 Geography

4th Dec 2020, 9:52 AM
Developer #1
Developer #1 - avatar
2 Respuestas
+ 10
Developer #1 Kindly don't spam in q/a continuosly!! You are repeatedly posting homework questions! Kindly don't do that! Follow community guidelines - https://www.sololearn.com/Discuss/1316935/?ref=app
4th Dec 2020, 1:19 PM
Piyush
Piyush - avatar