12月15日,是Bill的生日
于是我用Easyx为他做了个生日礼物比较潦草
当然中间的
initgraph(680, 420, EW_NOCLOSE | EW_DBLCLKS | EW_NOMINIMIZE);
setbkmode(TRANSPARENT);//设计字体透明
settextcolor(RGB(72, 61, 139));//设计字体颜色
settextstyle(45, 45, _T("宋体"));
TCHAR start1[] = _T("Made By Powasd");
outtextxy(25, 150, start1);
settextstyle(30, 30, _T("宋体"));
settextcolor(RED);//将字体颜色设置成red
TCHAR start2[] = _T("双击Esc退出");
outtextxy(160, 195, start2);
是我的水印
那么,废话不多说
Code:
#include<bits/stdc++.h>
#include <graphics.h>
#include<mmsystem.h>
#include <conio.h>
#include<Windows.h>
#pragma comment(lib,"winmm.lib")//加载静态库
using namespace std;
int main()
{
initgraph(680, 420, EW_NOCLOSE | EW_DBLCLKS | EW_NOMINIMIZE);
setbkmode(TRANSPARENT);//设计字体透明
settextcolor(RGB(72, 61, 139));//设计字体颜色
settextstyle(45, 45, _T("宋体"));
TCHAR start1[] = _T("Made By Powasd");
outtextxy(25, 150, start1);
settextstyle(30, 30, _T("宋体"));
settextcolor(RED);//将字体颜色设置成red
TCHAR start2[] = _T("双击Esc退出");
outtextxy(160, 195, start2);
Sleep(2000);
cleardevice();
settextcolor(RGB(255, 69, 0));
TCHAR FORE[] = _T("For Bill1");
TCHAR f[] = _T("生日快乐");
outtextxy(200, 180, FORE);
outtextxy(200, 220, f);
Sleep(3000);
closegraph();
initgraph(510, 426, EW_NOCLOSE | EW_DBLCLKS | EW_NOMINIMIZE);
setbkmode(TRANSPARENT);//设计字体透明
loadimage(NULL, _T("D:\\c++\\shirikuail\\shirikuail\\1.jpeg"));
TCHAR hap[] = _T("HAPPY BIRTHDAY Bill1");
settextstyle(10, 10, _T("楷体"));
outtextxy(0, 0, hap);
while (1) {
if (_getch()) {
int end = _getch();
if (end == 27) {
break;
}
}//双击Esc退出
}
}