A_template476131102002
所属分类:其他数据库
开发工具:C/C++
文件大小:3KB
下载次数:3
上传日期:2008-08-21 02:09:27
上 传 者:
wooogooo
说明: A template solution for C++ database development
Description: A template class that can write,read,modify & delete objects of any class/structure to a database.
文件列表:
datastore.h (5428, 2002-01-09)
Use this class in the following manner (where MY_TYPE is a class or structure written by you)
Adding a record:
*************
MY_TYPE mt;
// Set values of mt member variables
DataStore
ds("my.dat");
if(ds.Open()) {
if(ds.AddRecord(mt)) {
cout<<"Record saved"< ds("my.dat");
if(ds.Open()) {
unsigned long recs = ds.GetRecordCount();
}
***********************************
~~~~~~~~~~~~
Deleting a record:
*************
unsigned long index = 0;
for(unsigned long i=0;i
近期下载者:
相关文件:
收藏者: