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