#include #include using namespace std; int main(int argc, char** argv){ if(argc < 3){ cout << "入力ファイルと出力ファイルを指定して下さい" << endl; } ifstream ifs(argv[1]); ofstream ofs(argv[2]); if(ifs.fail()){ cout << "入力ファイルがありません : " << argv[1] << endl; return -1; } char c; while(true){ ifs.get(c); if(ifs.eof()) break; ofs.put(c); } }