写出下列程序的执行结果是:__________________。 #include using namespace std; class A { public : int f1(); int f2(); void setx( int m ) { x = m ; } void sety( int n ) { y = n ; } int getx() { return x ; } int gety() { return y ; } private : int x, y ; }; int
A::f1() { return x + y ; } int
A::f2() { return x - y ; } void main() { A a ; a.setx( 10 ) ; a.sety( 5 ) ; cout
发布时间:2024-04-18 21:00:04