From 5fb1bdaa03e3c05684cb5d013b08bb14de04a477 Mon Sep 17 00:00:00 2001 From: Shashank Kumar <40396681+shashank077@users.noreply.github.com> Date: Sat, 5 Oct 2019 00:39:42 +0530 Subject: [PATCH] Create Vector.cpp --- Vector.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Vector.cpp diff --git a/Vector.cpp b/Vector.cpp new file mode 100644 index 0000000..67c26f8 --- /dev/null +++ b/Vector.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +using namespace std; +int main() +{ + vector v; + int i; + cout<<"Vector_SIZE_original/initial:"<::iterator c= v.begin();//an iterator, moving/iterating over the vector from begining to the end of the vector to show the values stored in it. + while(c!=v.end()) + { + cout<<"value of v="<< *c<