2024年9月28日发(作者:裔宏恺)
k += 1;
}
}
iTotal = iEvenTotal + iAddTotal;
if( iTotal >= 100 )
{
iAuth = iTotal % 100 %10;
if( iAuth != 0 )
{
iAuth = ((iTotal % 100) / 10 + 1)*10 - iTotal % 100;
}
}
else
{
iAuth = iTotal % 10;
if( iAuth != 0 )
{
iAuth = (iTotal / 10 + 1)*10 - iTotal;
}
}
memset(acAuth, 0x0, sizeof(acAuth));
sprintf(acAuth, "%d", iAuth);
strcat(pcDest, pcSource);
strcat(pcDest, acAuth);
return 0;
}
2024年9月28日发(作者:裔宏恺)
k += 1;
}
}
iTotal = iEvenTotal + iAddTotal;
if( iTotal >= 100 )
{
iAuth = iTotal % 100 %10;
if( iAuth != 0 )
{
iAuth = ((iTotal % 100) / 10 + 1)*10 - iTotal % 100;
}
}
else
{
iAuth = iTotal % 10;
if( iAuth != 0 )
{
iAuth = (iTotal / 10 + 1)*10 - iTotal;
}
}
memset(acAuth, 0x0, sizeof(acAuth));
sprintf(acAuth, "%d", iAuth);
strcat(pcDest, pcSource);
strcat(pcDest, acAuth);
return 0;
}