用c++对页面修饰的定位,局部规划 #include<graphics.h>//引用EasyX图形库 #include<Windows.h>
int main (void){ initgraph(600,400); //初始化图形页面,画布大小为600*400
loadimage(0,("bg.jpg"));
settextcolor(RGB(255,255,0)); //设置字体颜色
settextstyle(30,0,"微软雅黑");
rectangle(300,40,550,80); //左上角x,左上角y,右上角x,右上角y
outtextxy(310,45,"1-网站404攻击"); //在指定的位置输出文本
rectangle(300,40,550,140);
outtextxy(310,105,"2-网站篡改攻击");
rectangle(300,160,550,200);
outtextxy(310,165,"3-网络修复攻击");
rectangle(300,220,550,260);
outtextxy(310,225,"4-查看攻击记录");
rectangle(300,220,550,320);
outtextxy(310,285,"5-退出");
system("pause");
closegraph();
}