I know this is kinda stupid and all, but I still figure it out: Why isn't the following code working?
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
class Field
{
int Farray[2][2];
sf::RenderWindow App(sf::VideoMode(100, 100, 32), "SFML");
public:
Field(int x, int y) {App.Create(sf::VideoMode(x, y), "SFML");};
void FEvent();
void FDisplay (int, int, int);
};
void Field::FEvent ()
{
}
void Field::FDisplay (int pos1, int pos2, int pl)
{
}
int main()
{
Field F(315, 315);
}
It says that "App was not declared in this scope"...