void testResults1(DBManagement * dbm, string sql) { ResultSet* rs = dbm->executeQueryWithResults(sql); int noOfRows = rs->getNoOfRows(); int noOfCols = rs->getNoOfCols(); cout<<"noOfRows: "<<noOfRows<<"\tnoOfCols: "<<noOfCols<<endl; for(int i = 0; i< noOfRows; i++) { for(int j = 0; j < noOfCols; j++) { //cout<<"\t["<<i<<","<<j<<"] : "<<rs->getElement(i,j)<<endl; cout<<"NAME "<<rs->getColName(j); cout<<"\t["<<i<<","<<j<<"] : "<<rs->getElement(i,j)<<endl; } cout<<endl; } delete rs; }