diff options
1 files changed, 23 insertions, 0 deletions
| -rw-r--r-- | pract_SI/Pract. 10/task2/main.cpp | 23 |
diff --git a/pract_SI/Pract. 10/task2/main.cpp b/pract_SI/Pract. 10/task2/main.cpp new file mode 100644 index 0000000..0fcc55c --- /dev/null +++ b/pract_SI/Pract. 10/task2/main.cpp @@ -0,0 +1,23 @@ +#include "ListofPoints.h" + +int main() +{ + ListofPoints list; + Point A; + Point B; + A.x = A.y = 9; + B.x = B.y = 4; + + for (size_t i = 0; i < 10; i++) + { + list.addPoint(A); + } + list.addPoint(B); + list.Print(); + std::cout << list.size<<std::endl; + list.pop(); + list.Print(); + list.clear(); + std::cout << list.size; + +}
\ No newline at end of file |
