so my homework wants me to take an input that is "x1888.88" and assign the "x" to a char, the "1" to a char, and the "888.88" to a float. anyone know how i can do this? and the "888.88" part could be any length could be a single digit or multiple with a decimal.
yes, i might not of been clear enough in my first post. the program will be reading from a text file and in that text file there will be "x1888.88" no spaces or other break characters. so how do i get it to store to separate variables of different types?