It's going well. Well, actually, I started it yesterday then got side tracked by various dealies I had to do for my parents then I had work and so I though I'd be fucked for today cause the assignment isn't exactly a push-over.
It involves breaking the project down into modules. So I have to link to my procedures in another file, ADT's defined in their own header file. Mainline program logic, again, in it's own file.
Yesterday was spent getting the main code working. I learnt that you must be careful of where you put things in case statements, and not to copy and paste little sections, cause I did that, for a while loop, and forgot to modify the loop condition for this 2nd loop, and absically fuxored my program into an infinite loop until I figured out my mistake.
Today I've done the rest of the main code, which involves reading data from a file, and loading that data into a linked list. I encountered various problems with that, until I spotted all my mistakes. Logic errors? I think they're called... Where your program compiles, runs, doesn't error, but then doesn't give you the output you expected. I also had a large number of exceptions where it was trying to get data from memory which it wasn't supposed to, leading to many crashed programs.
So, now I have the linked list implemented, it reads from the file perfectly. I have the rest of today and tomorrow to implement the following functions:-
- Search;
- Check-out via call number;
- Check-in via call number;
- List the most popular movies with the highest rental frequency (I'm going to average the frequencies, and define popular as being greater than average);
- Exit the program
Oh... No wait, shit... I've already done the exit part, what it's meant to be is Save & Exit, so that it saves any changes to the data into another file (or maybe the same file? I'm saving to another file to negate any hassles I may encounter) before exiting the program.
I'm gona take a break for a while longer, I hope to finish the program by tonight. I think... I shall start on the save + exit tonight, and get that done, as it's sure to be a bitch.




No comments:
Post a Comment