As posted below. How would i initialize the alphabet
using alphabet's
own member function for my static member
variable? I need to do the initialization from within the "Text.cpp" implementation file.
Text.h
class Text {
private:
struct Font {
enum Enum {
Arial,
Menlo,
Times
};
};
static Alphabet alphabet[3]; // library of letters
}; // class
I need something as seen below, just the correct way of accomplish the task. I also need to initialize the alphabet
only once for the duration of my runtime, thus i have made alphabet
static. Thank you. ^^
Text.cpp
Alphabet Text::alphabet[Text::Font::Arial].Load("./Alphabet/", "Arial", ".xml"));
Alphabet Text::alphabet[Text::Font::Menlo].Load("./Alphabet/", "Menlo", ".xml"));
Alphabet Text::alphabet[Text::Font::Times].Load("./Alphabet/", "Times", ".xml"));