Assuming you never use any letters other than A-Z, this problem is quite easy. Declare two sets of variables with variants of those names (one stores floats, the other is a char[] that stores up to... say eight characters, initialize them to something to avoid confusion later, get a character, determine which char * variable to use to store the numbers gotten by getline(variable, 8, ' ');, and use atof().
You may want to use a switch statement, and you may want to use a loop that continues until a newline is read by cin.get().
Assuming your sets of variables are 26-element-long arrays, to determine which space to read into or out of, subtract the number 65 from the character. Here's why: http://asciitable.com/
NOTE: Using a map<> is a better solution, but that might be a bit hard for you now (prerequisites: basic understanding of using templates and using classes). If you think you can understand it, though, then...
but i can't use that.. because i don't use C/C++ compiler... hmm.. the only one i can use is strtod()... i us that think and works if there is no whitespace... otherwise get error...
maybe anyone can help me to do this stuff..
i don't know why but my machine is lack of c/c++ library...
but i can't use that.. because i don't use C/C++ compiler... hmm.. the only one i can use is strtod()... i us that think and works if there is no whitespace... otherwise get error...
maybe anyone can help me to do this stuff..
i don't know why but my machine is lack of c/c++ library...
Then how in the twelve days of Christmas are you running your C++ code?