title: How can I TryParse userinput?
body: <p>this is my problem:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  #define newline '\n'
  using namespace std;
  using namespace System;
  
  int _tmain(int argc, _TCHAR* argv[])
  {
  bool isNumber;
  String^ age;
  Int32 result;
  cout
      &lt;&lt; "Please enter your age:"
      &lt;&lt; newline;
  cin &gt;&gt; age;
  isNumber = Int32::TryParse(age, result);
  return 0;
  }
  </code></pre>
  
  <p>I cant use cin with a String^ and I can't use string to tryparse</p>