+ 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

23rd Sep 2022, 6:10 PM
VirusZ
VirusZ - avatar
1 Réponse
+ 1
Declare it as pointer. Student *s1[10]; s1[0] = new Student(name[0], 4); s1[0]->display();
23rd Sep 2022, 6:42 PM
Jayakrishna 🇮🇳