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;
}
0 Comments