title: How to reset all variables in a struct in C++?
body: <p>I know how to reset the variable manually one by one, but is their anyway I could call the struct function to re-read the menu(): part? Because those variables are already by default. Or do I have to reset them one by one myself?</p>
  
  <pre><code>struct menu 
  {
      bool update;
      bool enterPressed;
      int scroll;
      int choice;
      int type;
  
      menu(): update(true), enterPressed(false), scroll(0), choice(0), type(0) {}
  } menu;
  </code></pre>