Thanks for taking the time to look at this, i would like some people to review my curent project which is written in c++ using visual studio 2008. Although in VS08 it does not use anything that makes it dependant on it (i dont think) i just wanted to be sure that visual studio liked my code before the move to a graphics application. (project files attached in zip file)
What im trying to do
Make a dos personal organiser application that will allow me to test the functionality of my classes and helper functions to ensure they work before making a graphical application.
what it should do and contain
years (C_Year) this is the top level class which is slightly more than a container class it will hold all the days of the year some data about the year (which year? is it a leap year?) member functions such as initilise and (not implimented yet)add/remove task to day, display day(s) tasks.
The code handles leap years in calculating the first day of the specified year and has a internal flag to know if the current year is indeed a leap year.
The init procedure in the year is as far as i have in the year's functionality it calculates the first day of the year and initilises all the days with the correct date day of the week and month.
Days (C_Day) are fully working classes they hold the information about the day they represent such as day of the week date month and a list of tasks for that day. C_Day has functions to add a task to the day which includes use of a protected sorting function. If more than one task is added the double linked list of tasks is sorted from earliest occouring in the day to latest occouring. there is also a function provided to print the task information to the console.
Tasks (C_Task) this class holds the information about a task such as its name, the task's details, scheduled time and schedule type, schedule type is currently only held in the task and has no effect yet but i hope to impliment that later as some tasks may happen only once, on a daily basis meonthly basis etc ,..
in some of my helper functions i have overloaded them to accept either a u16 (unsigned short) or an E_DAY (enumerated type of days of the week) i have chosen not to use a template class as i want to ensure that those are the only two input types people can use with the helper functions to prevent bugs. It was a design decision i took however if anyone can suggest a good argument for template classes or how it could actually prevent bugs better than my overloaded fucntions id be happy to hear about it.
what id like from this
I dont think theres much more i can say here other than what id like in a response. I would love if you could make any comments on my use of classes, c++ in general etc which could help me improve my coding practise as im a soley self taught programmer (from books but no teacher) and of course any suggestions / improvements on what im doing or how im doing it that would improve the application would be ooh so much appreciated also.
Edited 6 Years Ago by Kanoisa: Fixing uploaded file