Need help how to output that a number is a whole numberSince i is originally a double, [code](int)i[/code] (called "type casting") converts it to an int by...
Need help how to output that a number is a whole numberUse this predicate [code]if (i == (int)i)[/code].
Getline truncating first character in loopGet rid of line8.
Skipping input?Try adding [code]cin.clear();[/code] right before line27.
Skipping input?Good morning. XD I don't think there can be any residual '\n' character in the string buffer, as it ...
This user does not accept Private Messages