title: C++ - Restarting a game by calling the main() function
body: <p>I'm building a small game.
  One of the input options is to restart the game. The only way I could think of doing this was to call the main function from within the main function</p>
  
  <pre><code>int main(int argc, char argv[]) {
   ...
   if (input == "restart") {
    main(argc, argv);
   }
  </code></pre>
  
  <p>Is this bad form? Will it even work?</p>