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);

#includeint face_user();int face_play();int face_play2();void face_fileFailure();void face_userNotFound();void face_passwordWrong();void face_welcome(struct user* p);char* input_AC();char* input_re_AC();char* input_PW();void face_newACsuc();void listMedia(struct media* head);void listSongList(struct list* head); 7、list.h的源代码#include#include#include #include #include struct list { int num; char name[100];//歌单名称 struct list* next;};struct list* pre_list();struct list* getChoice_list(struct list* head);struct media* loadMedia(struct list* p);8、play.h的源代码


本文标签: 进度条 网页 代码 歌曲 歌单