This commit is contained in:
2026-03-17 16:46:05 +01:00
parent ee70d90785
commit 020939d1e3
8 changed files with 126 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
#include <iostream>
class Punkt {
int x, y;
public:
Punkt(int x, int y) : x(x), y(y) {}
Punkt() : Punkt(0, 0) {}
void pokaz() { std::cout << '(' << x << ',' << y << ')' << std::endl; }
};
int main() {
Punkt p;
p.pokaz();
Punkt p2(2, 2);
p2.pokaz();
}