Loop through #defines?

How would I loop through a set of file path #defines? I understand you can use enums to loop through integers, but it does not work for strings.
I have a set of #defines that look like this:
#define MUSIC1_PATH "music\\music1.wav"
#define MUSIC2_PATH "music\\music2.wav"
#define MUSIC3_PATH "music\\music3.wav"
etc...
Why not just declare an array of strings? It would work better, be cleaner and be easier to work with. If you're afraid of people messing with it you can just set it to be const.
Last edited on
+1 to what tummychow said.

break the habit of using #define for constants. It's a bad habit. Use constants for constants:

1
2
3
4
5
6
const char* MUSICPATHS[] = 
{
    "music\\music1.wav",
    "music\\music2.wav",
    "music\\music3.wav"
};
Topic archived. No new replies allowed.