摘要:
适合任何文件尤其是图片,注意那个binary参数fin和fout都必须有,否则要出问题 std::ifstream fin; fin.open("f:\\ss.jpg", std::ios_base::binary); std::ofstream fout; fout.open("d:\\ss.jpg", std::ios_base::binary); char byte; while (fin.get(byte)) { fout << byte; } fin.close(); fout.close(); 阅读全文
posted @ 2014-01-17 21:22
rldts
阅读(229)
评论(0)
推荐(0)
摘要:
Project -> Properties -> Configuration Properties -> Debugging在Command Arguments里填上即可 阅读全文
posted @ 2014-01-17 20:50
rldts
阅读(1918)
评论(0)
推荐(0)
浙公网安备 33010602011771号