Is Vector A Data Structure in C++
Is Vector A Data Structure in C++
STRUCTURE IN C++?
2
AGENDA
Introduction to Data Structures
STL in C++
What is Vector ? Difference between vector
and arrays
Example problem to show vector in C++
Conclusion
INTRODUCTION TO
DATA STRUCTURES
DATA STRUCTURES
A data structure is a way of organizing,
storing, and managing data in a
computer so that it can be used
efficiently.
WHAT IS VECTOR?
DIFFERENCE BETWEEN
VECTOR AND ARRAYS
Static and dynamic arrays.
9
WHAT IS A VECTOR?
In C++, a vector is a part of the Standard
Template Library (STL) and is implemented
as a dynamic array
After that, print all the numbers they entered (except -1).
14
15
CONCLUSION
So the conclusion of this presentation or Answer
to the question with which we have started our
presentation is YES, Vector is a data structure as it
follows the definition of data structure which we
have learned earlier in this presentation i.e. a
container should organize and store data in a
particular layout and at the same time provide
additional operations to manipulate the stored
data in data structure to get the desired output of
THANK
YOU
While(!(succeed == try()));
//Keep trying until efforts meets the
success;