gpt4 book ai didi

C scanf 有空格问题

转载 作者:太空宇宙 更新时间:2023-11-04 00:11:47 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do you allow spaces to be entered using scanf?

printf("请输入书名\n"); scanf("%s",书名);

我在数据里面是这样的:-C编程

但为什么输出这样的数据:-C

失去了编程(字符串)?

为什么

谢谢。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com