A couple of things. The field name will accept the first letter of the string, the rest will be considered to be part of the numeric value Balance. That of course will fail, and the input will not be able to proceed.
You might try something like this:
1 2 3 4 5 6
struct Reading {
int Account;
string Name;
double Balance;
Reading(int A, string N, double B):Account(A),Name(N),Balance(B){}
};
Well, normally we tend to leave the thread intact, as it may be helpful to someone else in the future. But this thread is particularly baffling as it was never clear where the real issue was. :)