You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
322 B

#include "TVector.h"
#include <iostream>
using namespace std;
int main()
{
const int N = 20;
TVector<int> v; // make an int vector
v.display(); // prints its contents
// Stores N ints in the Vector
for (int i=0; i<N; ++i)
{
v.push_back(i);
}
// print the contents
v.display();
return 0;
}