Mar 17, 2005 #1 A asemnor Junior Member level 3 Joined Mar 8, 2005 Messages 27 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,509 I am writing an application program in C++ to check inventory. My main problem is how to save the link list to file.Please help!!
I am writing an application program in C++ to check inventory. My main problem is how to save the link list to file.Please help!!
Mar 17, 2005 #2 artem Advanced Member level 4 Joined May 22, 2003 Messages 1,347 Helped 126 Reputation 252 Reaction score 32 Trophy points 1,328 Location Turkey Activity points 13,451 Very easy typdef struct { char data1 ; char data2; .... } mylist ; mylist listbuf[NOOF_LISTS]; yourstorefunction(char* liststart_pointer, int length) invoke your function as yourstorefuntion(listbuf, sizeof(mylist) * NOOF_LISTS); store everything byte by byte starting from from first byte of listbuf record .
Very easy typdef struct { char data1 ; char data2; .... } mylist ; mylist listbuf[NOOF_LISTS]; yourstorefunction(char* liststart_pointer, int length) invoke your function as yourstorefuntion(listbuf, sizeof(mylist) * NOOF_LISTS); store everything byte by byte starting from from first byte of listbuf record .
Mar 18, 2005 #3 B banh Advanced Member level 1 Joined Dec 16, 2004 Messages 458 Helped 17 Reputation 34 Reaction score 5 Trophy points 1,298 Activity points 3,935 i think inventory should make use of database system for better data management. you can try free database software: mysql.
i think inventory should make use of database system for better data management. you can try free database software: mysql.