|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
Overloading operators c++
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||
|
New to Overclock.net
|
Does anyone know how to overload the equal operator? I'm using a matrix (2d) but can't get my equal operator overloaded. Any help?
__________________
|
||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Kernel Sanders
|
It should just be
Code:
int class::operator==(class a, class b) What problem are you having?
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|