Appending a number to a number?
17:05 05 Mar 2011

How could I do the following?

Say I have the number 10 and would like to append the number 317 to it. The resulting integer would be 10317. How can this be done?

Also, once I have this number, how could I then for example remove the 17 off the end?

Without using strings, and without obvious solving and adding.

c++