新建一个=
C++=
源文件<=
span
lang=3DEN-US style=3D'font-size:78%;mso-fareast-language:ZH-CN'>test.cpp,键入如=
下代码,分析运行结=
6524;,以书面的=
形式说明test.cpp中每一条=
语句的作用,记入=
实验报告。
#include"arc.h&quo=
t;
void main()
{ CCircle c1(100,200,40); c1.Show();
cout<<c1.GetX()<<endl; cout<<c1.GetY()<&l=
t;endl;
c1.Hide();
if(c1.isVisible())
cout<<"圆可见"<<endl;
else
cout<<"圆不可见"<=
<endl;
//----------------------------
CArc a1(400,150,50,30,120);=
a1.Show(); cout<<a1.GetX()<<endl;
cout<<a1.GetY()<<endl; a1.Hide(); if(a1.isVisible())
cout<<"圆弧可见"<=
<endl;
else
cout<<"圆弧不可见"<=
<endl;
cout<<"圆弧的起始=
2;度:"<=
<a1.GetStartAngle()<<endl;
cout<<"圆弧的终止=
2;度:"<=
<a1.GetEndAngle()<<endl;}