#include "../Database/Database.h" #include "../Util/Util.h" //NOTICE+WARN: //ok to remove the whole tree //but if add again, error will come //TODO:deal with empty tree and add eles 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 << "remove 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"<