#include <iostream>
using namespace std;
class A{
float x,y;
public :
float m,n;
void Setxy(float a,float b){x=a; y=b;}
void Print(void){ cout<<x<<'\t' <<y<<endl; }
};
int main(void)
{A a1;
a1.m=10; a1.n=20;
a1.Setxy(2.0,5.0);
a1.Print();
return 0;
}
手敲1------
最新推荐文章于 2024-09-27 11:26:03 发布