title: problems when read file in CLion (JetBrain)
body: <p>I just install CLion and try to play around with it. But I meet some problems when reading a file and the console doesn't display as I expected, this is my code.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  
  using namespace std;
  
  void readFile(const char *fileName);
  
  int main() {
      readFile("test.txt");
  }
  
  void readFile(const char *fileName) {
      ifstream file(fileName);
      string s1;
      file &gt;&gt; s1;
      cout &lt;&lt; "s1 = " &lt;&lt; s1;
  }
  </code></pre>
  
  <p>and here is my file: test.txt</p>
  
  <pre><code>hello
  </code></pre>
  
  <p>this is the result:</p>
  
  <pre><code>C:\Users\hongn\.CLion12\system\cmake\generated\85e35c99\85e35c99\Debug\Test.exe
  s1 =
  Process finished with exit code 0
  </code></pre>
  
  <p>When I try:</p>
  
  <pre><code>int a;
  cout &lt;&lt; "a = ";
  cin &gt;&gt; a;
  cout &lt;&lt; "a is: " &lt;&lt; a;
  </code></pre>
  
  <p>this is the result:</p>
  
  <pre><code>C:\Users\hongn\.CLion12\system\cmake\generated\85e35c99\85e35c99\Debug\Test.exe
  a =3
  a = 3
  a is: 3
  Process finished with exit code 0
  </code></pre>
  
  <p>After I typed 3, the row "<code>a = 3</code>" appear.
  It is not the expected result, so redundant, why the line "<code>a = 3</code>" appear 2 times? How can I fix this?
  Thank you for your help!</p>