Assuming you mean to print the groups of three on new lines, just iterate over all N elements of the vector, printing a newline character after every three elements have been printed.
Viggy
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Iterating through vectorsThreaded View
|
Click Here to Expand Forum to Full Width |