#include <stdio.h>
#include <math.h>

struct point
{
    point(float x, float y)
    {
        this->x = x;
        this->y = y;
    }

    void move(float x, float y)
    {
        this->x += x;
        this->y += y;
    }

    float abs() const
    {
        return sqrtf(this->x*this->x + this->y*this->y);
    }

    float x;
    float y;
};

int main(void)
{
    point p(3,4);
    printf("point (%f,%f)\n", p.x, p.y);
    printf("abs %f\n", p.abs());
    return 0;
}
