c++//void main()
{Base a;
//a.init (123,234);
//a.print();
}
测试结果为:s*123-234=81的程序怎么写?
c++//void main()
{Base a;
//a.init (123,234);
//a.print();
}
测试结果为:s*123-234=81的程序怎么写?
class Base
{
public:
int aa;
int bb;
Base (int a,int b)
{
aa=a;bb=b;
}
void print()
{
printf("s*%d-%d=81\n",aa,bb);
}