Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
this->(i,j) doesnt work but this->_ij_val(i,j) does
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="bluekite2000, post: 2511229"] In class Matrix, I rather have just virtual T& operator () (int i, int j) { } since virtual T& operator () (int i, int j) { } and virtual T& _ij_val(int i, int j) { } do the same thing (accessing an element in my matrix) but I need both since init(int i, int j, int value) { this->(i,j)=value //compile error this->_ij_value(i,j)=value //ok } Why doesnt it work??? Any solution??? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
this->(i,j) doesnt work but this->_ij_val(i,j) does
Top