Dynamic Array/Vector problem

2 views
Skip to first unread message

Lei

unread,
Apr 19, 2013, 3:22:32 PM4/19/13
to programmin...@googlegroups.com
In C++ and Java, please try the following things:

create a vecter v1, add some elements in it. Then use a for loop to go through all the elements. By setting up some conditions and make the v1  in a inner loop and remove/add/modify some elements during the inner loop. print out the results.

does the inner loop results affect v1? try some examples.


 

Reply all
Reply to author
Forward
0 new messages