填空题
以下程序运行时输出到屏幕的结果中第一行是
1,第三行是
2,第四行是
3。
#include<iostream.h>
class R
{
private:
int Left;
public:
R(int L)
{
Left=L;
cout<<"A/t";
}
R()
{
Left=0;
cout<<"B/n";
}
void Print(void)
{
cout<<Left<<"/n";
}
~R()
{
if(Left!=0)
cout<<"~A/n";
else
cout<<"~B/t";
}
};
void main(void)
{
R r1(10),r2;
r1.Print();
r2.Print();
}