Hello
I'm encountering a small problem.
I've got all my variables placed in a function, who's in a class. That's working. But when I place my variables outside the function still in the class, I get the error: Expected a ')' AND Type identifier expected.
Code:
Working:
class a {
public:
void function() {
sf::RenderWindow window(sf::VideoMode(800, 600) "Title");
}
}
Not working:
class a {
public:
sf::RenderWindow window(sf::VideoMode(800, 600) "Title");
void function() {
//
}
}
How to solve this?
Thanks for reading,
Niely