title: '>': signed/unsigned mismatch. How do I fix this?
body: <pre><code>std::string text;
      HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
  
      HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); // Gets the console handle.
      PCONSOLE_SCREEN_BUFFER_INFO lpScreenInfo = new CONSOLE_SCREEN_BUFFER_INFO(); // Creates a pointer to the Screen Info pointing to a temporal screen info.
      GetConsoleScreenBufferInfo(hConsole, lpScreenInfo); // Saves the console screen info into the lpScreenInfo pointer.
      COORD NewSBSize = lpScreenInfo-&gt;dwSize; // Gets the size of the screen
  
      int choice{};
      
      do
      {
         
          if (NewSBSize.X &gt; text.size())
          {
  
              int newpos = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;ARES\n&quot;; // Prints the spaces
  
              int newpos1 = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;MENU\n&quot;; // Prints the spaces
              
              int newpos2 = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;Select one of the following options by pressing 1, 2 or 3:\n&quot;; // Prints the spaces
  
              int newpos3 = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;1. Activate Virus\n&quot;; // Prints the spaces
  
              int newpos4 = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;2. Program Information\n&quot;; // Prints the spaces
  
              int newpos5 = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
              
              for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;3. Exit\n&quot;; // Prints the spaces
  
              std::cin &gt;&gt; choice; 
              
              switch (choice)
              {
                  
              case 1:
                  
                  int newpos = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
  
                  for (int i = 0; i &lt; newpos; i++) std::cout &lt;&lt; &quot;Infection Initiated. Press any key to continue . . .\n&quot;; // Prints the spaces
                  std::cin.ignore();
                  system(&quot;CLS&quot;);
                  Ares();
                  
              case 2:
                  
                  int newposi = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
  
                  for (int i = 0; i &lt; newposi; i++) std::cout &lt;&lt; &quot;Program Information loading. Press any key to continue . . .\n&quot;; // Prints the spaces
                  std::cin.ignore();
                  system(&quot;CLS&quot;);
                  ProgramInfo();
                  
              case 3:
                  
                  int newposh = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
  
                  for (int i = 0; i &lt; newposh; i++) std::cout &lt;&lt; &quot;Ending Operations. Press any key to continue . . .\n&quot;; // Prints the spaces
                  std::cin.ignore();
                  system(&quot;CLS&quot;);
                  menu();
                  
              default:
                  
                  int newposa = ((NewSBSize.X - text.size()) / 2); // Calculate the number of spaces to center the specific text.
  
                  for (int i = 0; i &lt; newposa; i++) std::cout &lt;&lt; &quot;Invalid input! Press any key to continue . . .\n&quot;; // Prints the spaces
                  
              }
  
          }
          
      } 
      while (choice &lt; 1 or choice &gt; 3);
  </code></pre>
  <p>This is the relevant code where I'm getting the error. If you need to see more of my code, let me know and I'll add it.</p>
  <p>I've looked on the internet for a solution and have found similar issues to mine, but none of those repair jobs did anything to solve the problem. Any help here would be greatly appreciated</p>