saving records without database?
-
Hi everyone; can someone help me with the program im doing.. 1. i need to add and save student record without using database or text file. 2. view/search record.. that can be sort by category 3. edit record. 4. delete record how am i suppose to do it??? hope someone could help..
-
Hi everyone; can someone help me with the program im doing.. 1. i need to add and save student record without using database or text file. 2. view/search record.. that can be sort by category 3. edit record. 4. delete record how am i suppose to do it??? hope someone could help..
Robin Percival Vibar wrote:
how am i suppose to do it???
Yes, that's a good question: if you don't want to loose your changes every time your program exits then you have to use permanent storage, that is the hard disk (or another persistent medium like, for instance, flash memory of pen drives). Since you don't want to use a text file, I suppose a binary file is OK for you. You could design your own protocol or use object serialization. If you are using
MFC
, then you are lucky, since such framework provides good support to serialization, see "Serialization in MFC"[^].THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?! -- C++ FQA Lite