c语言中输入带空格的字符串,最简单的方法。

char  p[20];

scanf("%[^\n]",p);

ok完事

posted on 2015-08-23 09:45  崔付亮  阅读(2125)  评论(0编辑  收藏  举报