Here is the code I have at the moment:
char ch; int sum = 0; double values[10]; int i = 0; cin >> ch; while (!isalpha(ch)) { values[i] = ch;
Read the entire number as a string, and the convert the whole thing to a double by using the strtod function or some other C++-specific means.
double
strtod