Question:
How can I create a Structure that has a Dynamic Structure (array) inside of it using only the <new> and <iostream> libraries?
example:
1 2 3 4 5 6 7 8 9
struct fruit{
char name[100]
int seeds;
};
struct container{
fruit non_poisonous //unknown until later into the program how many fruit are poisonous must be declared as a dynamically arrayed structure
};
THANK YOU!
You saved me from hours of endless trial and error.
I could've done it without structures inside structures, however there's so much in the actual program that everything would've taken ages to implement and even longer to actually use.