do // added check for number only function
cout<<"Enter values for X and N separated by a space: (NUMBERS ONLY)\n";
x= atof(xx); //This two lines don't work
cout<<"You have choosen X="<<x<<" and N="<<n<<"\n";
cout<<"\nInput E to exit or any other number to continue..."; //added the E for exit function
See the lines "x=atof(xx);"
invalid conversion from `char' to `const char*'
initializing argument 1 of `double atof(const char*)'
[Warning] converting to `char' from `double' <---- This warning I get if the 'char to double conversion' not successful because the function that triggers the warning uses double, hence the need for conversion from char to double.
... these got me stuck. Someone please point out the error for me. Thanks !