いろんな言語で宿題 第五編
■ このスレッドは過去ログ倉庫に格納されています
0020デフォルトの名無しさん
2010/06/19(土) 21:59:08使用言語:maxima
P1():=(f:openw("test.txt"),
printf(f,"Computer1Programing2Communication3Electro4~%"),
close(f)
);
P2():=(fin:openr("test.txt"),fout:openw("sample.txt"),
printf(fout,"~a~%",sreverse(readline(fin))),
close(fin),
close(fout)
);
P3():=(fin:openr("sample.txt"),
text:readline(fin),
for v in charlist(text) do if uppercasep(v) then printf(true, "~a", v),
close(fin),
print("")
);
P1();P2();P3();
■ このスレッドは過去ログ倉庫に格納されています