#include <stdio.h>
#define MAXLINE 20
int main(void)
{
char line[MAXLINE];
while(fgets(line,MAXLINE,stdin) != NULL && line[0] != '\n')
fputs(line, stdout);
return 0;
}
//fgets函数保留了换行符,而fputs函数不会添加换行符。
Copyright @ 2025 Shimejing Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster