能力值:
( LV6,RANK:90 )
|
-
-
26 楼
看了几个大牛的分析 不错~
|
能力值:
( LV6,RANK:90 )
|
-
-
27 楼
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char username[255];
char code[255];
int i;
int len;
username[0] = 0;
while (username[0]!='t')
{
printf("Please input your username(begin with char 't'):");
scanf("%s", username);
}
printf("You typed %s\n", username);
len = strlen(username);
for (i=0; i<len; i++)
{
code[i] = ((username[i] - 0x20)^i)>>1;
}
code[i] = 0;
strcat(code, "dahaione");
printf("Your code %s\n", code);
return 0;
}
Please input your username(begin with char 't'):tpathletboy You typed tpathletboy Your code *(!+&$!)%#)dahaione
|
|
|