typedef enum {
artists = 0,
artists_songs = 1,
artist_albums = 2,
albums = 3,
album_songs = 4,
tags = 5,
tag = 6,
tag_artists = 7,
tag_albums = 8,
tag_songs = 9,
songs = 10,
song = 11,
playlists = 12,
playlist = 13,
playlist_songs = 14,
search_songs = 15
} Methods;
typedef enum {
artists = 0,
albums = 1,
songs = 2,
tags = 3,
playlists = 4
} ReturnTypes;
我在ReturnTypes的artists = 0这一行上不断收到错误提示,说artists已经被重新声明了。我不确定这个语法错误是什么。有什么想法吗?
artists
,因为它在您的应用程序中声明了重复的artist
常量。 - Dipen Panchasara