title: C++ code to automatically close console
body: <p>I am currently learning C++ for a programming course. I noticed that my professor's program automatically closes at the end of their program. It usually prompts the user for an input, and then upon entering an input, the program closes. How would I code that? I only know using return 0 gets me "Press Any Key to Continue"</p>
  
  <p>Note: this is a <code>.exe</code> file</p>