重新学习编程的第五天
#include<graphics.h>
#include<Windows.h>
int main(void)
{
initgraph(600,400);
settextstyle(30, 0, _T("微软雅黑"));
settextcolor(RGB(225, 225, 0));
loadimage(0,_T( "bg.jpg"));//加载图片
rectangle(300,40,550,80);
outtextxy(310, 45,_T( "1-网站404攻击"));
rectangle(300, 100, 550, 140);
outtextxy(310, 105, _T("2-网站篡改攻击"));
rectangle(300, 160, 550, 200);
outtextxy(310, 165, _T("3-网站攻击修改"));
rectangle(300, 220, 550, 260);
outtextxy(310, 225, _T("4-查询记录"));
rectangle(300, 280, 550, 320);
outtextxy(310, 285, _T("5-退出"));
system("pause");
closegraph;
}
需要加_T()在课上没有说,但是VS2019的easyX需要加这个,不然会报错,记住!!!