他的回复:
1、C语言2、华为云祝您新春愉快阖家欢乐3、// 主函数ConsoleApplication2.zipvoid main(){initgraph(1200, 800);srand(time(0));// 播放背景音乐MCIERROR mciError;char buf[500];mciError = mciSendString("open bk.mp3 alias bk", 0, 0, 0);if (mciError){mciGetErrorString(mciError, buf, strlen(buf));printf("%s\n", buf);getchar();exit(-1); }mciError = mciSendString("play bk repeat", 0, 0, 0);if (mciError){mciGetErrorString(mciError, buf, strlen(buf));printf("%s\n", buf);getchar();exit(-1);}setfillstyle(0);setfont(36, 0, "楷体");setcolor(YELLOW);outtextxy(370, 100, "华为云EI深知你心__hanyimo出厂 .... ^_^");DWORD t1 = timeGetTime(); // 筛选烟花计时DWORD st1 = timeGetTime(); // 播放花样计时DWORD* pMem = GetImageBuffer(); // 获取窗口显存指针for (int i = 0; i NUM; i++) // 初始化烟花{Init(i);}Load(); // 将烟花图片信息加载进相应结构中BeginBatchDraw(); // 开始批量绘图while (!kbhit()){Sleep(10);// 随机选择 4000 个像素点擦除for (int clr = 0; clr 1000; clr++){for (int j = 0; j 2; j++){int px1 = rand() % 1200;int py1 = rand() % 800;if (py1 799) // 防止越界pMem[py1 * 1200 + px1] = pMem[py1 * 1200 + px1 + 1] = BLACK; // 对显存赋值擦出像素点}}Chose(t1); // 筛选烟花Shoot(); // 发射烟花Show(pMem); // 绽放烟花Style(st1); // 花样发射FlushBatchDraw(); // 显示前面的所有绘图操作}}4、微信号:wxid_s6292emb641t21 华为云用户名:hanyimo