How do I convert ASCII to Integer WITHOUT USING THE ATOI FUNCTION? Could you be so kind and send me a little source code? (What is the source code behind the atoi () funcion?)
Thank you very much, Stefano
In PHP? $num=0+$string.
In C++? Ask in a C++ coders' forum.
#include <iostream.h>
int main() { char symbol; //declaration of variable
cout<<"Type a ASCII-symbol: "<<endl; //input symbol cin>>symbol; cout<<int(symbol); //output integer value of the symbol
return 0; }