-
-
[旧帖]
62ae8879转62AE8879问题
0.00雪花
-
发表于:
2008-8-11 13:17
3086
-
[旧帖] 62ae8879转62AE8879问题
0.00雪花
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char ch[255];
//temp1--eax temp2--ebx temp3--ecx
unsigned long temp1=0,temp2=0,temp3=0,len=0,i=0;
printf("---请输入伱的用户名:---\n");
printf(" ");
scanf("%s",ch);
len=strlen(ch);
for(;i<len;i++){
temp1=ch[i]&0Xff;
temp2=temp1;
temp1=temp1<<4;
temp2=temp2>>5;
temp1=temp1 ^ temp2;
temp1=temp1+0X26;
temp1=temp1 ^ temp3;
temp3=temp1+temp3;
}
temp1=0X0C0DEF;
temp1=temp1-temp3;
temp1=temp1*temp1;
printf("---序列号是:CM2-%lx-%lx\n",temp3,temp1);//现在的问题是怎么在一个以16进制显示的long里显示大写的字母
printf("---Cracked By Robbietree---\n");
}
如上的代码 temp1里显示的是小写的ascii 码 怎么让他变大写呢 就比如62ae8879如何转成62AE8879呢 c语言不行
谢谢
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课