title: I started commenting my C++ program then got errors
body: <p>So I had this working and Was about to put it on my gitub when I realized I forgot to comment so I went back and did that and I guess I did something wrong because now I'm getting errors I don't know how to get rid of.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;string&gt;
  using namespace std;
  
  class ENVIROMENT //Defines a class.
     {
     public:
     string OS; //Difines a string.
            {
            if (char const* USER = std::getenv("USER")) //Checks for user      name on a Unix-like system.
            {
            OS = "Unix"; //If true (succeded), assigns "Unix" to the variable "SYS".
            }
            else if(char const* USER = std::getenv("USERNAME")) //If last check was false (failed), checks for the username on Windows.
               {
               OS = "Windows"; //If true (succeded), assigns "Windows" to the variable "SYS".
               }
               else
               {
               OS &lt;&lt; "Your system is not supported!"; //If both returned false (failed), assignes a "System not supported" message to SYS.
               }
            cout &lt;&lt; OS &lt;&lt; endl; //Tells the user what system they have or that it is not supported (meaning it doesn't know what OS it is).
            return OS; //Returns OS to the string "OS".
            }
     };
  
  int main()
     {
     ENVIROMENT CHECK; //Calls the class "ENVIROMENT", refers to it as "CHECK".
     CHECK.OS(); //Calls the function (string) "OS" from the class "ENVIROMENT".
     return 0; //Returns a value of 0 if int "main" executed successfuly.
     }
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>ERROR: 10:11 Expected member name or ';' after declaration specifiers.
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ERROR: 31:4 Type string does not provide a call operator.
  </code></pre>
  
  <p>My question is: what do these errors mean? I know I must be missing something pretty basic.</p>
  
  <p>EDIT: It's supposed to detect the running OS based on the username system variable. Returns "Unix" on unix like systems and "Windows" on Windows. It's purely educational and not meant to be used by itself but can be useful in a more complete program.</p>