The first part was correct, with one exception:
Vectors are like arrays, they are indexed starting at 0, and going to index size-1.Code:for (int i = 0; i <= num_x; i++)
Viggy
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 22
Thread: Returning vectors from functionsThreaded View
|
Click Here to Expand Forum to Full Width |