*****Generate Classes*****

This is a discussion on *****Generate Classes***** within the C++ Programming forums, part of the General Programming Boards category; What would be the easest way to generate classes(school) will a somewhat equal number of boys and girls. the information ...

  1. #1
    Unregistered
    Guest

    Question *****Generate Classes*****

    What would be the easest way to generate classes(school) will a somewhat equal number of boys and girls. the information for that is comming from a data base.

    Thanks Bunches

  2. #2
    Unregistered
    Guest
    with a program.

    without knowing what type of information you will be retrieving and how much you wish to use it is not possible to be more specific.

    If I understand what you want to do correctly: if you have some way of knowing what gender each student is, then you can keep a list of boys and a list of girls. As each student's information is read in search the list of all the students in each of the classes for the class for the shortest list of students of the appropriate gender. Add the current student to the appropriate list of the appropriate class.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21