The vector class provides various methods to perform different operations on vectors.Īdd Elements to a Vector: To add a single element into a vector, we use the push_back() function.
Functions like the printf(), scanf(), cout, cin and various other input-output or other standard functions are contained within different header files. Header File or Standard files: This is a file which contains C/C++ function declarations and macro definitions to be shared between several source files.
It is mainly used to access system header files located in the standard system directories. Including using : While importing file using angular brackets(), the the preprocessor uses a predetermined directory path to access the file.