C/C++の宿題を片付けます 96代目
at TECH
484:デフォルトの名無しさん
07/09/29 07:39:15
>>474
#include<stdio.h>
int main(void)
{
char buf[1000];
FILE *fp=stdin;
int is_top=1;
while(1)
{
if(fscanf(fp, "%[^ \t\n]", buf)==1){
if(!is_top) printf("%s\n", buf);
is_top=0;
}
else if(fscanf(fp, "%[ \t]", buf)==1)
{
}
else if(fscanf(fp, "%1[\n]", buf)==1)
{
is_top=1;
}
else
{
break;
}
}
return 0;
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5282日前に更新/230 KB
担当:undef