char k= "123";
j = static_cast<int>( k);
I am writing a program where i receive a string with numbers in it. My program has to validate those numbers. I try to cast the numbers to an intiger for easier validation.
This program will run om win. using Borland.
The problem i'm having is that j contains the dec value of of 1.
I want j to comtain the number 1 not the decimal value of 1.
How do i do that.