We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Other Concepts
- Operator Overloading
- Discussions
Operator Overloading
Operator Overloading
Sort by
recency
|
222 Discussions
|
Please Login in order to post a comment
This was a weird one:
here is my Matrix class
thought a will be vector (int) , actually was vector (vector (int)).
int a must be public member, otherwise cannot be accessed from outside the class.
idk why, v[i] = a[i][j] + y.a[i][j] didnt work, changed it to v.push_back(a[i][j] + y.a[i][j]) then it worked.