Do you mean in the sample code,
operator is invoked by the a-th instance of the array, and b and something are two input parameters for operator for the a-th element of the instance array?
myclasses[a][b] = something;
Originally Posted by CornedBee
I do not know what you mean above. Could you show some pseude code please?
Originally Posted by jian2587
BTW: operator on string works good. Here is my test code, I do not know why you say it can not work.
using namespace std;
string str ("abcdefg");
char ch = str; // ch is 'd'