为什么输入源程序时,写了#include,电脑仍然无法识别gets(s)?(其中s是字符串数组)
是#include<stdio.h>
gets()这个方法是输入的你引用“sting.h”只能调用方法 你得正确使用
添加头文件
#include <stdio.h>
或用fgets替代,其中N是字符串数组s的大小
fgets
fgets(s, N, stdin);