+ 1

How can I create array of object in c++ assuming I have a class students which each of my object will instantiate from.

I want to create 10 student object to be store as an array

5th Jan 2018, 6:52 AM
Ahmed Olanrewaju
Ahmed Olanrewaju - avatar
3 Respostas
+ 2
Student students[10];
5th Jan 2018, 7:00 AM
Arthur Queiroz Moura
Arthur Queiroz Moura - avatar
0
can you expatiate please. Do you mean I should create the Student class instance as an array variable ?
5th Jan 2018, 10:26 AM
Ahmed Olanrewaju
Ahmed Olanrewaju - avatar
0
yes
5th Jan 2018, 2:23 PM
Arthur Queiroz Moura
Arthur Queiroz Moura - avatar