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
317 B
23 lines
317 B
3 years ago
|
#include "IVector.h"
|
||
|
#include <iostream>
|
||
|
using namespace std;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
const int N = 20;
|
||
|
|
||
|
IVector 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;
|
||
|
}
|