Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class point {
- public:
- int x, y;
- point() {
- }
- point(int _x, int _y) {
- x = _x;
- y = _y;
- }
- };
- int main() {
- point p;
- p.x = 10;
- p.y = 20;
- cout << p.x << " " << p.y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement