Hi, everyone!
I am new to SFML and have some basic skills in C++ programming.
I don't get why a window stays open if loops are used:
#include <SFML/Graphics.hpp>
int main()
{
sf::Window window;
window.create(sf::VideoMode(800,600),"Title");
while(1)
{
}
}
Without loops the window is going to close promptly. Why?