Environment : Visual Studio 2008 Professional Edition
I am trying to debug Hexadecimal to decimal conversion but unfortunately getting "term does not evaluate to a function taking 3 arguments" this error.Can anyone suggest how to solve this issue ?
code:
#include <string>
using namespace std;
int main()
{
    int stoi;
    int number = 0;
    string hex_string = "12345";
    number = stoi(hex_string, 0, 16);
    cout << "hex_string: " << hex_string << endl;
    cout << "number: " << number << endl;
    return 0;
}
 
    