Hi,
I have a class:
Qt Code:
  1. class myClass {
  2. int number;
  3. void incrNumber() {number++; }
  4. void something();
  5. };
  6. myclass c[3];
  7.  
  8. myClass::something() {
  9. //here i'd like make something such as myClass[3].incrNumber();
  10. }
To copy to clipboard, switch view to plain text mode 
Is there a way to modify the state of an instance of object only (and only one) from a method of myClass?
Thanks.