Iam a student. My name is Tom. I am 19 years old. ****
供参考:
到底输入了啥呢?for循环有问题,80是字符数组的长度,不是字符串的长度啊。for(i=0;i<strlen(a);i++)再#include <string.h>