注册机部分如下:
#include"string.h"
main()
{
char name[32];
int i,j;
printf("please input your name:");
scanf("%s",name);
i=strlen(name);
if(i<5)
{
printf("Your name must be at least five characters\n");
printf("please input your name again:");
scanf("%s",name);
i=strlen(name);
}
printf("your Serial is:");
for(i;i>=1;i--)
{
j=strlen(name)-i;
printf("%c",name[j]-i);
}
}
以上程序TC2.0调试通过