C++
#1
Ive got to redo some C++ work for my course and i dont have a clue what im doing. If anybody knows what they are doing and want to do it for me that would be nice. Maybe i can wash your car in return, hows that sound? lol
Ive got to use class files and get it to do the following: 1) Add a new meeting, given a date and time of day. Other data required will be the location and the person with whom (s)he is meeting.
2) Cancel a meeting, given the date and the name of the person. (You can assume (s)he will not meet the same person twice on the same day!).
3) Print a list of all meetings organised
4) Print an ordered list (in Date, Time order) of all meetings in a range of dates (ie between date1 and date2).
5) Save the data to disk when the program is closed down, and reload it when the program starts up again.
Sounds fun ay! If anyone has any advice or useful links that would be really good. Cheers
Ive got to use class files and get it to do the following: 1) Add a new meeting, given a date and time of day. Other data required will be the location and the person with whom (s)he is meeting.
2) Cancel a meeting, given the date and the name of the person. (You can assume (s)he will not meet the same person twice on the same day!).
3) Print a list of all meetings organised
4) Print an ordered list (in Date, Time order) of all meetings in a range of dates (ie between date1 and date2).
5) Save the data to disk when the program is closed down, and reload it when the program starts up again.
Sounds fun ay! If anyone has any advice or useful links that would be really good. Cheers
#5
Random thoughts :
Think about the classes that you are going to need. Your lecturer would probably expect 4.
meeting.
meeting manager.
time (wrap up time.h for doing the clock/date work).
serializer (send the stuff to disk/screen).
meeting manager would need to know about creating meetings and using the time class for scheduling, it would also contain the master list (array) of meetings. It would also be able to iterate the array looking at properties of the meetings, do the sorting / insertion and deletion.
Meetings need to contain all the meeting info and be able to serialize themselves (e.g. Meeting::Serialize() would return a tab delimited string of the properties, as this will go to screen and file easily).
Serializer class would need to be able to create/read/write files and screen content.
#include disclaimer.h /*obsolve all responsibility and state that you didn't give it much thought in case someone calls you a thicko */
dull developer joke
Think about the classes that you are going to need. Your lecturer would probably expect 4.
meeting.
meeting manager.
time (wrap up time.h for doing the clock/date work).
serializer (send the stuff to disk/screen).
meeting manager would need to know about creating meetings and using the time class for scheduling, it would also contain the master list (array) of meetings. It would also be able to iterate the array looking at properties of the meetings, do the sorting / insertion and deletion.
Meetings need to contain all the meeting info and be able to serialize themselves (e.g. Meeting::Serialize() would return a tab delimited string of the properties, as this will go to screen and file easily).
Serializer class would need to be able to create/read/write files and screen content.
#include disclaimer.h /*obsolve all responsibility and state that you didn't give it much thought in case someone calls you a thicko */
dull developer joke
#7
Can we work on car washes per line of code maybe? lol
Im alright at websites if you want one in return? (bugger you have one)
[Edited for a 2nd time by Scooby Snax - 5/20/2002 2:30:30 PM]
[Edited by Scooby Snax - 5/20/2002 2:31:27 PM]
Im alright at websites if you want one in return? (bugger you have one)
[Edited for a 2nd time by Scooby Snax - 5/20/2002 2:30:30 PM]
[Edited by Scooby Snax - 5/20/2002 2:31:27 PM]
Trending Topics
#9
I do know a fair few dirt bags! Me thinking about soapy wet females is not helping doing this. I think ive got most of the little bits to work the problem is going to be putting it all together. I know a few poor students that have done it so worse comes to worst ill just pay them. LOL
Thread
Thread Starter
Forum
Replies
Last Post
Fuchsrohre
Computer & Technology Related
22
21 September 2005 11:43 PM