aditya.shevade
Console Junkie
I have a problem with conversion of a C++ string into an integer and float. We had a competition, the program given was to convert a string into respective characters, strings, integers and floats.
It means that, if the input stream is say, 'xy st 45 s g 5.36 24' then, the characters will be 's' and 'g'. Strings will be 'xy' and 'st'. The integers will be 45 and 24 and the float will be 5.36.
Is there any way to do this?
Please, please help me.
Aditya
It means that, if the input stream is say, 'xy st 45 s g 5.36 24' then, the characters will be 's' and 'g'. Strings will be 'xy' and 'st'. The integers will be 45 and 24 and the float will be 5.36.
Is there any way to do this?
Please, please help me.
Aditya