Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <stack>
- #include <fstream>
- #include <algorithm>
- using namespace std;
- class Point {
- private:
- double x, y, z;
- public:
- Point(double _x = 1.0, double _y = 1.0, double _z = 1.0) {
- x = _x;
- y = _y;
- z = _z;
- }
- double get_x() const {
- return x;
- }
- double get_y() const {
- return y;
- }
- double get_z() const {
- return z;
- }
- };
- int main()
- {
- Point p;
- cout << p.get_x() << " " << p.get_y() <<" " << p.get_z() << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement