Sure, although I'd argue that a better approach would be to represent the age as an integer in the data structure. Especially if the program is planning to perform arithmatic on it! :)
We’re a place for programmers to stay up-to-date, learn new skills, and share ideas.
We’ll never post without your permission.