Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 10 / task2 / main.cpp
blob: 0fcc55c324e19200a26a35b7d29c63e5614854e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
    
}