0
How to overload ^ operator tofind the square of given number in c++
C++ operator overloading
2 Respostas
+ 2
Tnq for your support let me try this out.
+ 1
Hi Suriya Narayanan.N !Well first you will have to create a class, because if you try to overload the ^ operator to use only on built-in types (like int), it won't work. Have you tried overloading operators for your own classes before?