C/C++の宿題片付けます 140代目
■ このスレッドは過去ログ倉庫に格納されています
0526デフォルトの名無しさん
2010/10/02(土) 19:00:09int main(void)
{
system("cat present.dat | tr a-z A-Z > tmp.txt");
system("sed -e \"s/^/code:/\" tmp.txt > tmp2.txt");
system("sed -e \"s/ /\\nname:/\" tmp2.txt > tmp3.txt");
system("sed -e \"s/ /\\nprice:/\" tmp3.txt > tmp4.txt");
system("sed -e \"/price/a\n\" tmp4.txt > tmp5.txt");
system("perl -pe 's/price:\n/price:xxxx\n/' tmp5.txt > output.txt");
system("rm tmp.txt tmp2.txt tmp3.txt tmp4.txt tmp5.txt");
return 0;
}
■ このスレッドは過去ログ倉庫に格納されています