C++ Problem Help

(1st question: How will i make a function that generates the seat number for the students?)
(2nd question: How will i generate a code that does this "Students who come from the same school are not allowed to sit together")
(3rd question: and this one "No two boys allowed to seat together")
please read first the following below. I would very much appreciate if you answer my questions. Thank you so much! <3

Each examination room will only have 25 students each. Students who come from the same school are not allowed to sit together. If it comes to a point when there is no seat left for the inputted student, the student would be assigned to another room.

Last edited on
This is not a homework site.
http://www.cplusplus.com/forum/beginner/1/
Topic archived. No new replies allowed.