int main(void)
{
char ch;
char str[80];

 


printf("Input a string: ");    //先输入字符串

gets(str);//get()   put()   这两个函数并列使用,前者就是从案件获取按键值,  后者是显示输出
puts(str);

printf("Input a character: ");
scanf("%c",&ch);

return 0;
}

相关文章:

  • 2021-04-26
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2021-05-18
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案