Pulling two digits from integer?

Pages: 12
Just flip the names of the variables. It's still the same operations to extract the data.

Move your cout << res2 line into the parenthesis (but after all the ifs) so that it only prints if the month is valid.

and don't let helios know where you live :-$
Topic archived. No new replies allowed.
Pages: 12