(1)程序代码:
# include & ltgraphics.h & gt
int main()
{
initgraph(300,150);
SetWindowText(GetHWnd(),& # 34;测试& # 34;);
setorigin(150,75);
setlinecolor(绿色);
setline style(PS _ DASH);
矩形(-75,-25,75,25);
系统(& # 34;暂停& gtnul & # 34);
closegraph();
返回0;
}
(二)代码运行结果: