Validate a possible credit card number using C++