Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Operator overload, Vector

Status
Not open for further replies.

maek

Programmer
Sep 11, 2002
2
SE
from main(), i want to do this;
Vector *d = new Vector[5](3);

How do I construct my class Vector?
 
What does a vector look like? Does that code tidbit make an array of five vectors, each three elements in length? What type are the elements?

High School Computer Science Advanced Placement (AP) Board has some classes for commonly needed items, like vectors, strings, matricies, etc. They're pretty decently commented, could learn a lot from them. Here's some dealing with vectors:
----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top