#include <stdio.h>
#include <string.h>
#include <math.h>
#define str_len 80
int main()
{
char str[str_len+1],ch;
printf("Input a string:");
scanf("%s",str);
printf("%s\n",str);
printf("Input a character:")'
getchar();
ch=getchar();
printf("%c\n",ch);
return 0;
}
10月三一做题笔记 字符串
最新推荐文章于 2024-05-05 03:42:58 发布