[求助]这个题目错了没有啊
#include "iostream.h"
class rec{int x,y;
public:
int a(int=1,int=2)
{return (1+2);
}
int add(int x=1,int y=2)
{int s;
s=x+y;
return s;
}
};
void main()
{rec r;
cout<<"funtion r.a's value is :"<<r.a<<endl;
cout<<"funtion add(x,y) is:"<<r.add()<<endl;
}