Have you ever thought of using any of those formating buttons and dropdox boxes on top of the text editor? E.g. you could use the code tag to structure or highlight your pseudo or real code.
Like I said in the first post, you should have given a better explenation in your first post. I mean read your top sentence, does it make any sense?
Okay for you're problem just use
std::cin.get() and be happy with it.
window.close() doesn't call
std::exit() it's just a class that leaves it's scope and gets destroied in the process. But it
doesn't jump randomly around thus killing the application 'flow'.
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
// Start the game loop
while (window.isOpen())
{
// Process events
sf::Event event;
while (window.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
window.close();
}
// Clear screen
window.clear();
// Update the window
window.display();
}
// Do what ever you want, e.g. just wait for an input
std::cin.get();
return EXIT_SUCCESS;
}
Btw this is something basic in C++. If you don't understand it, you should defently dig deeper into C++ by reading books.