一个简单的acsll搜索引擎

第一次在CSDN上写博客,对于各个功能都不熟悉,但是实在想写的不行,对于C语言的学习有很多不解的地方,希望各位大佬多多给与指正
下面是我根据别人写的代码改编的一个ASCLL码的查询工具,不知是否可以优化
#include<stdio.h>
int_char()
{
int b;
printf(“please input the exchange integer:\n”);
scanf_s("%d", &b);
getchar();
printf("%d’s ASCLL exchange is :%c\n", b, b);
return 0;
}
char_int()
{
char b;
printf(“Please input the exchange character:\n”);
scanf_s("%c", &b);
getchar();
printf("%c’s ASCLL number is:%d\n", b, b);
return 0;
}

print(void)
{
printf(“Welcom use philipu’s ASCLL integer and character exchange program\n”);
printf(“1.integer exchange character\n”);
printf(“2.charcter exchange integer\n”);
printf(“3.退出\n”);
}

int main()
{
int a;
print();
scanf_s("%d", &a

猜你喜欢

转载自blog.csdn.net/m0_55513356/article/details/115188236