Hello,
I am new to programming C++ on Unix, but not new to programming. I program professionally in VB6 and .NET as well as C# (just moving to that). I am enrolled in a C++ class and need some help with an assignment. Now, I do not want anyone to do this assignment for me, I simply want some hopefully friendly directions and advice. My teacher is unreachable and the tutor didn't show up for his shift, and I'm in a bind. If this violates the rules here, apologies in advance.
The assignment is to create an appointment book application that has three classes (ApptBook, Date, Time).
The ApptBook object is to instantiate an array of Date objects, the Date objects in turn are to instantiate arrays of Time objects. All is to be done on the heap using pointers.
I'm lost. I'm having a conceptual problem, I think, as well as syntactical issues.
I've created the three classes that work on the stack when I instantiate a single instance. I can't seem to get it to work either when trying to create arrays of objects nor when trying to move to pointers on the stack. This could be mainly syntax problems, but I also am having trouble visualizing when to instantiate the objects and how to manipulate them once instantiated.
This is using the g++ compiler, and if it matters I'm working in vi via telnet to the school Unix system.
Any (ahem) pointers or advice appreciated.
Thanks,
Ron
I am new to programming C++ on Unix, but not new to programming. I program professionally in VB6 and .NET as well as C# (just moving to that). I am enrolled in a C++ class and need some help with an assignment. Now, I do not want anyone to do this assignment for me, I simply want some hopefully friendly directions and advice. My teacher is unreachable and the tutor didn't show up for his shift, and I'm in a bind. If this violates the rules here, apologies in advance.
The assignment is to create an appointment book application that has three classes (ApptBook, Date, Time).
The ApptBook object is to instantiate an array of Date objects, the Date objects in turn are to instantiate arrays of Time objects. All is to be done on the heap using pointers.
I'm lost. I'm having a conceptual problem, I think, as well as syntactical issues.
I've created the three classes that work on the stack when I instantiate a single instance. I can't seem to get it to work either when trying to create arrays of objects nor when trying to move to pointers on the stack. This could be mainly syntax problems, but I also am having trouble visualizing when to instantiate the objects and how to manipulate them once instantiated.
This is using the g++ compiler, and if it matters I'm working in vi via telnet to the school Unix system.
Any (ahem) pointers or advice appreciated.
Thanks,
Ron