Are you the author of the program?
If so, why not just initialize everything at the beginning of the program so you don't have to wonder?
Are the data types all going to be numeric, as in your example?
I don't think there is an easy way to do it. Off the top of my head, one way would be to assign a Boolean variable to each variable to indicate if it has been initialized or not.
If the variables are all numeric, you might try using isnan() in <cmath>.
Also, this might interest you, and it is relevant:
Yesterday when I was looking for information about quiet_NaN, I came across several informative threads on stackoverflow. You might want to head over there and do a search for "quiet_NaN". Here are some of the more interesting/relevant threads:
http://stackoverflow.com/questions/235386/using-nan-in-c
http://stackoverflow.com/questions/6822044/c-checking-if-a-variable-is-initialized/6822126#6822126
http://stackoverflow.com/questions/235386/using-nan-in-c#236952
The post by "Motti" in the last thread has been upvoted a lot, so it might be worth investigating more thoroughly.