#ifndef _DBUNTIL_H_ #define _DBUNTIL_H_ struct person { int p_id; char *name; int f_id; //ͼƬ }; struct my_db { char user[25]; char pswd[25]; char host[25]; char db[25]; unsigned int port; }; class DBuntil { public: DBuntil(); DBuntil(my_db mydb); ~DBuntil(); person db_rearch(int f_id); bool db_register(int f_id,person *p); private: bool db_add(int f_id,person *per); int db_update(); bool db_select(int f_id,person *per); char sql[1024]; int res; }; #endif