|
|
|
这段程序是那种语言写的啊,能把它改用 C 写一次吗?
#include <stdio.h> #include <stdlib.h> #include <windows.h> #pragma comment(lib,"Kernel32.lib") #pragma comment(lib,"User32.lib") char* IntToHex(char c, char* cBuff, char* cFormat) { wsprintf(cBuff,cFormat,c); return cBuff; } int main() { char nome[256]={0}; char serial[256]={0}; char tmp[4] = {0}; int i,j,iLen; printf("######## Keygen for Step 2 by The Hellfish ########\n"); printf("Enter your name: "); scanf("%s",&nome); iLen = lstrlen(nome); if (iLen >= 4) { j = 0; strupr(nome); for (i = 0; i < 8; i++) { if (nome[i] != 0) lstrcat(serial,IntToHex(nome[i] ^ (80 + i),tmp,"%02X")); else { lstrcat(serial,IntToHex(nome[j] ^ (80 + i),tmp,"%02X")); j++; } } printf("\nYour code is: %s\n",serial); printf("#### Lie, Cheat and steal! ####\n"); } else printf("You must type at least 4 chars!!!\n"); system("pause"); return 0; } |
|
[原创]新文本和16进制数据相互转换工具[易语言源代码]
因为已经有相似的易语言代码了,所以这一篇就不加精了,期待楼主的更好代码。 |
|
|
|
ANSI/unicode 的一个问题
变量是可以自定义的,不一定非要定义为W。 |
|
|
|
ANSI/unicode 的一个问题
ANSI/unicode是两种不同字符编码,一般都将处理方法用不同的函数来处理,不过如果你想,你也可以自己写一个函数里即可以同时处理ANSI和unicode编码,这和用两个函数处理分别处理没什么分别,Windows里也分两种编码的函数,分别后缀用A和W来标识。 |
|
[求助]如何将这段代码写成汇编的?
呵~,是用VC直接转的吧。 |
|
|
|
[求助]谁会用LGDT这条指令?不能LGDT FWORD?
警告一次,同一个主题勿开两个贴子。 |
|
|
|
MASMPlus终于更新了
不错不错,这个是属于正式版本了。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值