0

Creating and array for struct

Trying to create a single array, a dynamically allocated array of struct Is it as easy as : Struct employees{ Int a Char b[100] }; Int main() Char* employee job = new char job[100];

9th Oct 2016, 5:58 PM
Hakatek
1 Antwort
0
try using constructor for struct struct emp{ emp(){ b = new char[100]; } int a; char *b; };
10th Oct 2016, 1:27 PM
Maxim Carter
Maxim Carter - avatar