Objectives : array and vector
- We will have two examples myArray_vector1.htm and
myArrayvector1.htm
- Example 1; myArrayVector1.cpp
- In this example we compared array and vector
int n1[10] = { 69 ,60,63,61,65,64,71,70,68,64 };
|
|
|
|
|
|
- code :
myArrayVector1.txt
- Please also see :
myArray_vector1.htm In this example, I used
"ostream_interator" than typical for loops.
ostream_iterator< int> output(cout, " ");
|