这是我的问题:
#include "stdafx.h"
#include <iostream>
#include <string>
#define newline '\n'
using namespace std;
using namespace System;
int _tmain(int argc, _TCHAR* argv[])
{
bool isNumber;
String^ age;
Int32 result;
cout
<< "Please enter your age:"
<< newline;
cin >> age;
isNumber = Int32::TryParse(age, result);
return 0;
}
我不能使用带有String的cin ^我不能使用字符串来tryparse