- UID
- 62930
注册时间2009-7-24
阅读权限20
最后登录1970-1-1
以武会友
TA的每日心情 | 开心 2024-12-6 17:12 |
---|
签到天数: 6 天 [LV.2]偶尔看看I
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#pragma comment(linker, "/SECTION:.MicroQ,ERWXS")
#pragma comment(linker, "/MERGE:.data=.MicroQ")
#pragma comment(linker, "/MERGE:.idata=.MicroQ")
#pragma comment(linker, "/MERGE:.text=.MicroQ")
#pragma comment(linker, "/MERGE:.rdata=.MicroQ")
//#pragma comment(linker, "/align:0x200")
#pragma data_seg(".MicroQ")
char szPasswd[] = "EvilKnight" ;
#pragma data_seg()
#pragma code_seg(".text")
int main(void)
{
char szInput[64] = {0} ;
int i = 0;
for (; i< 3; ++i)
{
memset(szInput, 0, sizeof(char) * 64) ;
gets(szInput) ;
if (strcmp(szPasswd, szInput) == 0)
{
printf("The password is success!\n") ;
return 0 ;
}
else
{
printf("Password Error, again type the password please\n") ;
}
system("pause") ;
}
return 0 ;
}
#pragma code_seg()
#define _X86
#ifdef _X86
#pragma message("_X86 macro activated!")
#endif
[ 本帖最后由 evilknight 于 2009-10-7 00:57 编辑 ] |
|