C++ Standard Template Library : Write a code to push value inside vector and display with help of iterator

 


This C++ Program shows implementation of Vector in Stl.

this code of the C++ Program shows Vector in Stl. The C++ program is successfully compiled and run on vc code. output is also shown below.


Enter   number of element in your vector or 0 or quit :5
Enter your 1 elelemnt of vector :1
Enter your 2 elelemnt of vector :2
Enter your 3 elelemnt of vector :3
Enter your 4 elelemnt of vector :4
Enter your 5 elelemnt of vector :5
your Vector size is :5
You want to display vector element (Y) ,(N) :
y
1 2 3 4 5
do you want to delele all element enter (y) or (n) :y
are you  sure  enter (y) or (n) : y

0 Comments