C/C++の宿題を片付け ..
[2ch|▼Menu]
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;
}


次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5282日前に更新/230 KB
担当:undef