注册机代码:
#include<iostream>
using namespace std;
int main() {
char name[100];
printf("Name : ");
scanf("%s",name);
int len = strlen(name);
int serial = 0x1;
for(int i=0; i<len; i++) {
serial *= (int)name[i];
}
serial = serial & 0x0FFFFFFF;
printf("Serial : %d\n",serial);
return 0;
}
[QUOTE=hnxxx;853511]注册机代码:
#include<iostream>
using namespace std;
int main() {
char name[100];
printf("Name : ");
scanf("%s",name);
int len = strlen(name);
...[/QUOTE]