명품 C++ programming 12장 실습문제 6번


명품 C++ programming 12장 실습문제 6번

문제 c:\windows\system.ini를 c:\temp\system.txt로 복사하는 동안 10%를 진행할 때마다 '.'과 바이트 크기를 다음과 같이 출력하는 프로그램을 작성하라. 복사 시작... .21B 10% .21B 20% .21B 30% .21B 40% .21B 50% .21B 60% .21B 70% .21B 80% .21B 90% .21B 100% 219B 복사 완료 내가 짠 코드 #include<iostream>#include<fstream>using namespace std;int main() { ifstream fin("c:\\windows\\system.ini", ios::in | ios::binary); if (!fin) { cout << "c:\\windows\\system.ini 열기 오류" << endl; } ofstream fout("c:\\temp\\system.txt", ios::out | ios::binary); if (!fout) { cout << "c:\\temp..........



원문링크 : 명품 C++ programming 12장 실습문제 6번