语言实战之浪漫烟花表白程序.pdf

创建 win32 控制台应用程序,选择空项目。 创建完毕后,右击头文件新建一个头文件( .h )。名字写 main.h 然后在源文件新建一个 C++ 文件 (.cpp )。名字写 main.cpp 如图: 然后在 main.h 里面写上如下代码: #include stdio.h #include graphics.h #include time.h #include stdlib.h #include math.h #include mmsystem.h #pragma comment ( lib , winmm.lib ) #define PI 3.1415926535 #define NUM 13 // 烟花弹 struct JET { int x, y; // 坐标

文档评论(0)

1亿VIP精品文档

相关文档