add Vector class(unfinished

This commit is contained in:
Shine wOng
2019-05-08 11:00:10 +08:00
parent fae4437d18
commit 75ae7e0800
3 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#include <cassert>
#include <time.h>
#include "Vector.h"
void test_constructor(){
cout << "--------------run test_constructo--------------" << endl;
Vector<int> V();
assert(V.getSize() == 0);
assert(V.getCapacity() == DEFAULT_CAPACITY);
int A[10] = { 2,3,4,6,1,0,9,8,7,5 };
Vector<int> V(A, 10);
}