生日快乐,Bill

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退出
	}
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值