How exactly am I supposed to word it out? I am getting an error on the "openFromFile" line.
I am hovering above it, and it says "Error: expression must have class type"
// Header file
class MyClass
{
vector<sf::Music*> music;
MyClass();
}
// Source file
MyClass::MyClass()
{
for (int i = 0; i < MAX; i++)
{ music.push_back(new sf::Music()); }
music[0].openFromFile("soundFile.ogg");
}