In C++,
#include <iostream>
using namespace std;
int main ()
{
int i;
cin >> i;
cout << i;
return 0;
}
If we input a string to i
, for example, "integer"
, it will display 0 when cout, which means that the string becomes 0. Could it be possible to make the string become some other integer, 10000 for example?