Hi, I'm currently a university student and I'm rather new to C / C++. The scope of my course which I have completed is on matlab, and C, otherwise I'd ask my lecturer. I am doing an exercise, making a small database program (purely for practice- I have no intention of actually using it), and I've been getting random errors which I'm unsure of how to fix.
http://pastebin.com/x6UcrQEK
The two errors I'm getting:
1) makeStudent() fails somewhere between 5-10% of the time, crashing the application. The last line of output is "Please enter student name: ". I think the cin >> name is causing the crash, but I literally have no idea why.
2) After making 3 objects of the class student, if I quit, the application crashes while executing the clean function. A screen shot below shows this.
http://www.freeimagehosting.net/newuploads/ea5ao.png
My apologies if the syntax is difficult to read. I prefix input arguments with i and output with o- probably not the best way, but I'm focusing on learning the content before I worry about syntax and the like.
Any help at all would be much appreciated. Also, on a side note, if theres a place where I can learn tidy syntax, that would also be nice.