您的位置 首页 > 腾讯云社区 scanf的一些技巧---饶文津 瞎采新闻 发布于 2020-06-01 评论() 阅读() 一、scanf和gets1.不同点: char string[50]; scanf("%s",string); //当遇到回车,空格和tab键会自动在字符串后面添加'