第三章课后练习题(P145_3_5)

#include <iostream>
using namespace std;
class f
{
private:
int x, y;
public:
void f1()
{
x = 10;
y = 10;
}
void print()
{
cout << x << "," << y << endl;
}
};
int main()
{
f a;
a.f1();
a.print();
system("pause");
return 1;
}

posted @ 2020-03-12 15:13  CollisionDimension  阅读(75)  评论(0编辑  收藏  举报