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;
string stream should be able to do the conversion for you. A pass through atoi could also get the job done.