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];
1 Antwort
0
try using constructor for struct
struct emp{
emp(){
b = new char[100];
}
int a;
char *b;
};