Hi guys, I hope you'll help me with this.
class myCls{
int x;
};
and then I create:
myCls c1;
and now:
is there way that I go like: cout << c1;
not overloading << operator;
and it shows me a value of c1.x?
just wanna replace c1 with that value;
I need sth smillar to indexer from c#.
class myCls{
int x;
};
and then I create:
myCls c1;
and now:
is there way that I go like: cout << c1;
not overloading << operator;
and it shows me a value of c1.x?
just wanna replace c1 with that value;
I need sth smillar to indexer from c#.
Comment