Subscribe Us

Responsive Advertisement

Advertisement

problem 6.1(example)

 

problem 6.1(example)


#include<bits/stdc++.h>

using namespace std;

class point

{


    int a,b;

public:

    point(){a=0;b=0;}

    point(int x,int y)

    {

        a=x;

        b=y;

    }

    void show()

    {

        cout<<a<<" "<<b<<endl;

    }


};

int main()

{

    int p,q;

    ifstream in;

    in.open("input.txt");

    in>>p>>q;

    point po(p,q);

    po.show();

    in.close();

    return 0;

}


Post a Comment

0 Comments