Hi!
I am an old C++ programmer and I have tried and treid again, but I can't understand how I convert a string or char to an integer.
int i;
string k = "123";
char j = "3";
i = j; //This gives hexa (I think) for 3: 51
i = (int) j; //Something.
i = (int) k; //Doesn't work.
Is there a function that does this, or do I have to write one myself?
Thanks for all help, Larsson.
I am an old C++ programmer and I have tried and treid again, but I can't understand how I convert a string or char to an integer.
int i;
string k = "123";
char j = "3";
i = j; //This gives hexa (I think) for 3: 51
i = (int) j; //Something.
i = (int) k; //Doesn't work.
Is there a function that does this, or do I have to write one myself?
Thanks for all help, Larsson.