• 标 题:鼠标锁V2.5 修正版注册机 (616字)
  • 作 者:看雪
  • 时 间:2000-7-11 22:06:20
  • 链 接:http://bbs.pediy.com

鼠标锁V2.5 修正版,主要是修正了注册的算法了。注册机如下:(算法太简单,随便写写)#include <stdio.h>
#include <string.h>
void main(void)
{unsigned long s;
int i,n;
char c[80];
char name[]="opq98";

printf("KeyGen for mouse lock 2.5.\n");
printf("coded by toye.\n");
printf("http://toye.yeah.net\n\n\n");


printf("Your name:");
scanf("%s",c);

while (strcmp(name,c)==0)
{
printf("opq98 has been ranged into black list\n");
printf("please entry your name again:");
scanf("%s",c);
}

s=0;

for(i=0;(n=c[i])!='\0';i++)
s=s+n*n;
s=s*190;
printf("\n");
printf("Registration code =%ld\n",s);
}