degamer106
0
Junior Poster
Recommended Answers
Jump to PostBecause you're trying to use
movie
when it's pointing to some random memory address, which will cause a program crash. You need to allocate memory, something like this:root->movie = new MOVIE;
Then you can do something with it:
root->movie->year = 2000;
Hope …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.