I am getting the error:
[Error] 'atoi' was not declared in this scope
Code:
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
string str = "131.90";
int n;
n = atoi(str);
cout << n;
return 0;
}
Comment