add cmd tips

This commit is contained in:
firmianay
2017-08-05 20:44:45 +08:00
parent f10bf37fa8
commit c4791e8f7e
12 changed files with 49 additions and 438 deletions

14
src/Others/4.2_0x1f.c Normal file
View 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");
}
}