cpp:vector_overloading_unary_operators
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cpp:vector_overloading_unary_operators [2019/05/20 08:27] – gthanos | cpp:vector_overloading_unary_operators [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 42: | Line 42: | ||
</ | </ | ||
- | <code cpp Vector.cpp> | + | <code cpp Vector.hpp> |
#include < | #include < | ||
#include < | #include < | ||
#include < | #include < | ||
using namespace std; | using namespace std; | ||
+ | |||
+ | #ifndef _VECTOR_HPP_ | ||
+ | #define _VECTOR_HPP_ | ||
class Vector { | class Vector { | ||
Line 82: | Line 85: | ||
// elements in inverted sequence. | // elements in inverted sequence. | ||
}; | }; | ||
+ | |||
+ | #endif | ||
+ | </ | ||
+ | |||
+ | <code cpp Vector.cpp> | ||
+ | #include " | ||
Vector:: | Vector:: | ||
Line 240: | Line 249: | ||
} | } | ||
+ | </ | ||
+ | |||
+ | <code cpp VectorUsage.cpp> | ||
+ | #include " | ||
int main() { | int main() { |
cpp/vector_overloading_unary_operators.1558340856.txt.gz · Last modified: 2019/05/20 07:27 (external edit)