Also, there is really no need to write the loop yourself.
int sub_vector_length = 2;
vector<int> sub_vector(myvector.begin(), myvector.begin() + sub_vector_length);
If the compiler's...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Paul McKenzie Search: Search took 0.13 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |