#include "../Database/Database.h" #include "../Util/Util.h" using namespace std; int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); #ifdef DEBUG Util util; #endif cout << "argc: " << argc << "\t"; cout << "DB_store:" << argv[1] << "\t"; cout << "insert file:" << argv[2] << endl; string db_folder = string(argv[1]); int len = db_folder.length(); if(db_folder.substr(len-3, 3) == ".db") { cout<<"your database can not end with .db"<