藤浩


私信TA

用户名:uq_65644879572

访问量:1410

签 名:

无限风光在险峰

等  级
排  名 2579
经  验 2162
参赛次数 0
文章发表 22
年  龄 21
在职情况 学生
学  校 麦当劳汉堡大学
专  业

  自我简介:

TA的其他文章

报数问题代码
浏览:29

//other.h文件
#ifndef __OTHER_H__   //防止重定义格式
#define __OTHER_H__

struct lrc {      //定义一个链表串起时间和歌词
       int time;  //时间
       char lrc_buf[200];  //歌词
       int lrc_num;  //第几句歌词
       struct lrc *next;  //链表的指针
};

typedef struct lrc LRC;  //结构体重定义
extern char *open_file();  //打开文件函数
extern int strtok_deal(char *f, char **song_line);  //歌词切割函数
extern void four_deal(char **song_line, char *four[50]); //对于前四行特殊处理
extern LRC *init();  //确定链表头指针
extern void insert(LRC *p, LRC **head);
extern LRC *divide_deal(char **song_line, int n);  //分开时间与歌词
extern void time_delay(int sec);  //时间延迟
//extern void set_fg_color(int color);  //设置前景颜色
extern void clear_screen(void);  //清屏函数
//extern void set_bg_color(int color);  //设置背景颜色
extern void song_print(LRC *head, char **four);  //歌词打印+效果

#endif

 

0.0分

0 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区