deleted first try
This commit is contained in:
parent
8fb9887a82
commit
033d75f170
|
|
@ -1 +0,0 @@
|
|||
#include "IntVector.h"
|
||||
36
IntVector.h
36
IntVector.h
|
|
@ -1,36 +0,0 @@
|
|||
#pragma once
|
||||
class IntVector
|
||||
{
|
||||
private:
|
||||
/*size_t curr_idx = 0;
|
||||
int* intVector = nullptr;*/
|
||||
|
||||
public:
|
||||
|
||||
|
||||
/*size_t size() const {
|
||||
return this->curr_idx;
|
||||
};
|
||||
|
||||
int& operator[](const size_t index) {
|
||||
if (index >= this->curr_idx)
|
||||
throw std::invalid_argument("Index must be less than vector's size");
|
||||
return this->intVector[index];
|
||||
};
|
||||
|
||||
IntVector() = default;
|
||||
|
||||
~IntVector() {
|
||||
delete[] intVector;
|
||||
};*/
|
||||
|
||||
/*IntVector(const IntVector& anotherVector) {
|
||||
delete[] intVector;
|
||||
this->curr_idx = anotherVector.size();
|
||||
|
||||
intVector = new int[255];
|
||||
}*/
|
||||
|
||||
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue