For the MovieTicketMaster Class upon review I can't tell when or if ever the non-default/default contructor is called, and if so what they're really doing, I tried using a debugger but still cant seem to figure it out. If somebody can tell me the best way to find out that would be appreciated. Also I see the deconstructor was called for atleast the one no default one in my output (when u enter 4) "Theater Oakridge Theaters is currently closed"
#Constructors
16 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I think your issue is in your bubble sort function
You are only ever calling the non-default constructor when on line 73 you do new MovieTicketMaster("Oakridge Theaters", "San Jose", 8) which calls the non-default constructor for MovieTicketMaster
Though from the previous question, Natashi is right, the BubbleSort function still needs work, and you have 2 options:
- swap every property of the movies separately
- Make movie_list a
Movie**
The problem was that your destructor gets called for the Movie temp, which goes out of scope at the end of your sort, so you see the Movie destructor being called
how can i send this
but so u can see w/o downloading
or is it just too long
You can put it in a site like Pastebin or put it on GitHub