检测显示fgets这一行too few actual parameters,不知道哪里出了问题
#include<stdio.h>#include<string.h>intmain(void){charbuffer[256];printf("Enteryournam...
#include<stdio.h>
#include<string.h>
int main(void)
{
char buffer[256];
printf( "Enter your name and press <Enter>:\n");
fgets( buffer );
printf( "\nYour name has %d characters and spaces!", strlen( buffer ));
return 0;
} 展开
#include<string.h>
int main(void)
{
char buffer[256];
printf( "Enter your name and press <Enter>:\n");
fgets( buffer );
printf( "\nYour name has %d characters and spaces!", strlen( buffer ));
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询