-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctions.h
More file actions
45 lines (40 loc) · 788 Bytes
/
Functions.h
File metadata and controls
45 lines (40 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef FUNCTIONS_H_INCLUDED
#define FUNCTIONS_H_INCLUDED
#include <iostream>
using namespace std;
class MusicLib{
public:
MusicLib();
~MusicLib();
FILE *FileMusicLib;
struct song_duration
{
int minute, second;
};
struct music_record
{
song_duration record_duration;
char record_name[30], album_name[20], artist[20], genre[15];
int release_year;
} M, *m;
public:
int el_size(FILE* f);
void table();
void show1(music_record M);
int main_menu();
int add_new_record(int q);
int show_all();
void search_menu();
void sorting_menu();
int search_year();
int search_genre();
int search_artist();
int search_name();
int sort_name();
int sort_artist();
int sort_genre();
int sort_year();
int sort_duration_long();
int sort_duration_short();
};
#endif