33,322
社区成员




#include <iostream>
using namespace std;
int main()
{
wchar_t a;
cin>>a;
int b=_wtoi(&a);
cout<<b<<endl;
return 0;
}
char *sz = "anihoifh";
#include <iostream>
using namespace std;
int main()
{
wchar_t a[32];
wcin>>a;
int b=_wtoi(a);
wcout<<b<<endl;
return 0;
}
int _wtoi(
const wchar_t *str
);
str
String to be converted.
Each function returns the int value produced by interpreting the input characters as a number. The return value is 0 for atoi and _wtoi, if the input cannot be converted to a value of that type.