P
Protoman
How would I make a program to calculate a checksum? I have the code to
sum up the digits, but what then? Here's the digit summer:
template <unsigned int I>
int SumDigits()
{
return(I%10)+(SumDigits<I/10>());
}
template <>
int SumDigits<0>() {return 0;}
Some help? Thanks!!!!
sum up the digits, but what then? Here's the digit summer:
template <unsigned int I>
int SumDigits()
{
return(I%10)+(SumDigits<I/10>());
}
template <>
int SumDigits<0>() {return 0;}
Some help? Thanks!!!!