From 033d75f170779547b3296e22aae24b970dcf7bc7 Mon Sep 17 00:00:00 2001 From: Andrey Kassaev Date: Tue, 5 Mar 2024 17:26:14 +0400 Subject: [PATCH] deleted first try --- IntVector.cpp | 1 - IntVector.h | 36 ------------------------------------ 2 files changed, 37 deletions(-) delete mode 100644 IntVector.cpp delete mode 100644 IntVector.h diff --git a/IntVector.cpp b/IntVector.cpp deleted file mode 100644 index dc6aae6..0000000 --- a/IntVector.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "IntVector.h" diff --git a/IntVector.h b/IntVector.h deleted file mode 100644 index 8b9d86e..0000000 --- a/IntVector.h +++ /dev/null @@ -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]; - }*/ - - -}; -