+ 1
How to create and fill in an array of a C++ structure?
How to create and fill in an array of a C++ structure? https://code.sololearn.com/cBUb4287uuTR/?ref=app
1 Antwort
+ 1
Declare it as pointer.
Student *s1[10];
s1[0] = new Student(name[0], 4);
s1[0]->display();