mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-23 03:35:03 +07:00
add cmd tips
This commit is contained in:
14
src/Others/4.2_0x1f.c
Normal file
14
src/Others/4.2_0x1f.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include<stdio.h>
|
||||
#include<string.h>
|
||||
void main() {
|
||||
char data[8];
|
||||
char str[8];
|
||||
printf("请输入十六进制为 0x1f 的字符: ");
|
||||
sprintf(str, "%c", 31);
|
||||
scanf("%s", data);
|
||||
if (!strcmp((const char *)data, (const char *)str)) {
|
||||
printf("correct\n");
|
||||
} else {
|
||||
printf("wrong\n");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user