How would you go about making an age calculator?

I've tried different codes, surprisingly of the ones i've tried works. If you could give an example of one which functions or so, i'd be more than happy. My problem is that idk how to create an "active variable" cause the users birthyear needs to be subtracted from the current year. I can't figure out how to create a variable for the users birthyear.
please don't duplicate your question (even the first one was more clear)
it only confuses us

http://www.cplusplus.com/forum/beginner/139713/#msg739074
Topic archived. No new replies allowed.