Hi,
I'm trying to convert a luhn algorithm from C to C++. Here is what I have. I'm having a problem with the main function. I'm not sure where to put it. Here is the code and the compile errors.
Thanks
#include<string.h>
static int verify_checksum(char *credit_card)
{
char *cp;
int dbl;
int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.