C 习题与解析(类和对象-05)

文章作者 100test 发表时间 2007:03:10 17:00:00
来源 100Test.Com百考试题网


题4.分析以下程序的执行结果
#include
#include
class Sample
{
public:
int x,y.
Sample(){x=y=0.}
Sample(int a,int b){x=a.y=b.}
void disp()
{
cout<<"x="<else
cout<<"x!=y"<}
}.

void main()
{


相关文章


2006年9月二级C语言考试超级模拟试题2答案
C 习题与解析(类和对象-06)
2006年9月二级C语言考试超级模拟试题3答案
C 习题与解析(类和对象-05)
2006年9月二级C语言考试超级模拟试题4答案
C 习题与解析(类和对象-04)
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛