Is there a predefined function that take the first two digits
of a number such as 2008 and divide it by a number. I am working on a program that is asking this function: int getCentury(int year) to take the first two digits of the year, divide and save the reminder.
You can use google to check for specific libraries :) C++ itself doesn't have much functions, headers that you are including have. Type their name in google, you will see all functions. Or, go to reference page - http://www.cplusplus.com/reference/
And try to check for yourself before asking next time. Cheers!