#include < iostream. h >
class f{
private: int x,y;
public: f1( int a,int b) { x = a;y = b; }
void print( ) { cout << x << --<< y << endl; }
};
main( ) {
f a;
float x=1.0, y=2.0;
a. f1( x, y) ;
a. print( ) ;
}
FLOAT X=1.0, Y=2.0;错误。F1( )调用时实参与形参类型不一致。