scanf()和gets()以及printf()和puts()的区别
转载自: http://blog.csdn.net/xingjiarong/article/details/47282817
一、scanf()和gets()
1.scanf()
所在头文件:stdio.h
语法:scanf(“格式控制字符串”,变量地址列表);
接受字符串时:scanf(“%s”,字符数组名或指针);
2.gets()
所在头文件:stdio.h
语法:gets(字符数组名或指...
转载
2019-03-08 15:35:43 ·
185 阅读 ·
0 评论