From 029688e143109344989b1529259e391822abb0aa Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 21 Jul 2019 03:21:00 +0700 Subject: [cpptour] Learn the basis --- cpptour/Vector.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cpptour/Vector.h (limited to 'cpptour/Vector.h') diff --git a/cpptour/Vector.h b/cpptour/Vector.h new file mode 100644 index 0000000..c7bbc68 --- /dev/null +++ b/cpptour/Vector.h @@ -0,0 +1,9 @@ +class Vector { +public: + Vector (int s); + double& operator[] (int i); + int size () noexcept; +private: + double* elem; + int sz; +}; -- cgit 1.4.1