一、效果
视频效果:
C++编写的表白小程序(图片围成爱心+烟花+音乐)-附源码
二、项目完整源代码:
链接:https://pan.baidu.com/s/1zea3Wji1VN4FIrqXoa4LWw
提取码:ypag
三、程序需要调用EasyX图形库
官网链接:https://easyx.cn/downloads/
使用的版本:EasyX库(附带graphics.h) 2018春分版 (2018-3-21)
四、展现爱心和烟花的代码
==============Romantic.h==================
#pragma once
#include "graphics.h"
#include "time.h"
#include "mmsystem.h"
#include //标准的输入输出头文件。
#include #include #include #include "windows.h"
#pragma comment(lib,"winmm.lib")
#define nSecond 500
#define PI 3.1415926548
#define NUM13
class CRomantic
{
public: