I need to implement a class like a CMyResultSet class.
The client code which call CMyResultSet would look like this:
Code:
CMyResultSet res;
GetResultSet(res);
for (int i = 0; i < res.rows(); ++i)
{
string res1 = res[i][0].tostring();
}
I have no idea how to implement [][] to let the client code calling like that. How would the method's prototype look like? And How can I save the searched result set in two dimension array, using std::vector or what?
Thanks in advance!
Sorry, I'm using C++!