http://sfml-dev.org/tutorials/2.0/start-vc.phpAt the buttom of the page, the little test, i got everything to work.
But im confused about the nested while-loop
it looks like to me that the nested-while-loop is like an if-statement, because it go in and do the thing 1 single time, and then jump out of the loop again. I know it because i tested it with the cout thing inside the first while-loop, and it looped around 24/7.
Why not just make it to an if-statement? That would seem less confusing because then
you know for sure it will do the statement
1 single time and jump out.
i actually tried to replace "while" with "if" and it worked perfectly, but why make it to a while-loop and why does it jump out?