Is it possible to make nested structures? I'm trying to do this with the following code, but it just doesn't compile
Code:#include<iostream> using namespace std; struct animals{ struct insects; struct fish; struct mammals; }; struct insects{ char moths[40]; char beatles[40]; char crickets[40]; }; int main(){ animals A; A.insects B; return 0; }



LinkBack URL
About LinkBacks



