69,373
社区成员
发帖
与我相关
我的任务
分享
// 回音程序.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "stdio.h"
int main(int argc, char* argv[])
{
char s[10];
while (1)
{
if(scanf("%s",s)==EOF)
break;
printf("%s\n",s);
}
return 0;
}
#include "stdio.h"
int main( )
{
char s[ 10 ];
while( ~scanf( "%s", s ) )
printf("%s\n",s);
return 0;
}