Design and implement a class named "Vector 5D" using C++ which stores a
40
hypothetical vector having 5 components, you may assume these components as V[1],
V[2], V[3], V[4] and V[5] . The class should use array to store these components. The
class should have necessary constructors and member functions. In addition, the class
has an overloaded + operator which adds two vectors component by component. Write
appropriate main ( ) function that adds two such vectors and shows the output of the
resultant vector.
Shyam_2 0 Newbie Poster
iamthwee
happygeek commented: ROFL :) +14
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.