admin 管理员组文章数量: 887021
2023年12月18日发(作者:网页代码怎么样设置背景)
#include"user.h"#include"list.h"extern char filepath2[100] = "C:UsersHPMusic";int face_user();int face_play();int face_user() { system("CLS"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_RED); printf("nnn"); printf("tttt╔═══════════════════════════════════════════════════════════╗n"); printf("tttt║ __ _______ _____ ║n"); printf("tttt║ / |/ / __ / ║n"); printf("tttt║ / /|_/ / /_/ //_ < ║n"); printf("tttt║ / / / / ____/__/ / ║n"); printf("tttt║ /_/__/_/_/ /___/ ____________ ║n"); printf("tttt║ / __ / / / ____/ __ ║n"); printf("tttt║ / /_/ / / / /| | / __/ / /_/ / ║n"); printf("tttt║ / ____/ /___/ ___ |/ / /___/ _, _/ ║n"); printf("tttt║ /_/ /_____/_/ |_/_/_____/_/ |_| 1.0 Ver ║n"); printf("tttt║ ║n"); printf("tttt╚═══════════════════════════════════════════════════════════╝nnnn"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE); int a; printf("tttt╔═══════════════════════════════════════════════════════════╗n"); printf("tttt║ ║n"); printf("tttt║ *1.登录 *2.注册 ║n"); printf("tttt║ ║n"); printf("tttt║ *0.退出 ║n"); printf("tttt║ ║n"); printf("tttt╚═══════════════════════════════════════════════════════════╝n"); printf("tttt "); scanf("%d", &a); return a;}//包含进度条int face_play(struct media* p0) {
system("CLS"); struct media* p = p0; int a; int LENGTH = 50;//进度条长度 int MinTens_cur = 0, MinOnes_cur = 0, SecTens_cur = 0, SecOnes_cur = 0; int MinTens_total = 0, MinOnes_total = 0, SecTens_total = 0, SecOnes_total = 0; char st1[50]; char st2[50]; char file1[50] = "status "; char file2[50] = " length"; char text1[50] = "status "; char text2[50] = " position"; char cmd[100]; int length = 0;//存储歌曲时长 int current = 0;//存储歌曲当前播放位置 sprintf(cmd, "%s%s", filepath2, p->name); strcat(file1, cmd); strcat(file1, file2); mciSendString(file1, st1, 50, 0);
#include
版权声明:本文标题:c语言编写音乐播放器完整代码(mciSendString函数的使用方法,第一次使 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1702866132h433816.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论