#include
#include
int main()
{
char str[300]={"\0"};
int i;
while(scanf(" %s",str) == 1)
{
if(strcmp(str,"over") == 0)
break;
printf("%s\n",str);
for(i=0;i<300;i++)
{
str[i]='\0';
}
}
return 0;
}
#include
#define over '\0' //使用宏定义将字符串结束符替换为over
main()
{
char str0[]="123",str1[]="wc";
printf("%s %s %c\n",str0,str1,over); //over输出格式必须为%c
}
#include
#include
int main()
{
char str[300];
while(scanf("%s",str) == 1)
{
if(strcmp(str,"over") == 0)
break;
printf("%s\n",str);
}
return 0;
}