Mega Code Archive
Vector size before and after elements insertion
#include
#include
#include
using namespace std;
int main()
{
vector v(10); // create a vector of length 10
cout << "Size = " << v.size() << endl;
for(int i=0; i<10; i++)
v[i] = i + 'a';
cout << "Current Contents:\n";
for(int i=0; i