In C++ we know that for a pointer of class we use (->) arrow operator to access the members of that class like here:
->
#include usi
Note that for a pointer variable x
myclass *x;
*x
x->setdata(1, 2)
(*x).setdata(1, 2)
x[n]
So for example x->setdata(1, 2) is the same as x[0].setdata(1, 2).
x[0].setdata(1, 2)