You are here:

C++/C++ Operator Overloading

Advertisement


Question
Sir, Can you please help me..
I want to add/subtract two 3 dimensional vectors using C++ + - operator overloading..
V1=(x1,y1,z1)    V2=(x2,y2,z2)
i just want to implement Vector class in C++ in the simplest form..
thank you..

Answer
hi dear Indika !

Since my time is too limited , i couldn't find time to write a simplest code , but still i found this article is pretty simple as you expected
http://en.allexperts.com/q/C-1040/2008/1/Operator-Overloading.htm#b

get back to me if you have issues in understanding things
.
Thanks and Regards
Prince M. Premnath

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise

Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience

More than 5 years

Education/Credentials
MCA

©2012 About.com, a part of The New York Times Company. All rights reserved.