[cs13001] Regarding Project 13 Part 2

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Apr 16 19:59:22 EDT 2013


> 
> I am programming Project 13 Part 2.  I am wondering how we should output
> all the rows.  Should we do it as a huge string or what is your suggestion.
> 

Individual elements of a vector of vectors can be accessed with two
indexing operations (as in a multidimensional array). So you can
output an element like so:

       cout << myVector[i][j]; 

You can see this in the example linked to the lab assignment:

   http://www.cs.kent.edu/~mikhail/classes/csi.s13/Labs/Lab13/listVector.cpp

I suggest using this method.

Thanks,
--
Mikhail


More information about the cs13001 mailing list