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


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

문제 두 파일이 같은 지 비교하는 FileCompare 프로그램을 만들어라. 바이너리 I/O를 이용하여야 한다. 두 개의 이미지 파일을 준비하고 테스트 하라. 내가 짠 코드 #include<iostream>#include<vector>#include<fstream>#include<string>using namespace std;int main() { ifstream fin("c:\\windows\\system.ini"); int input = 1; string temp; vector<string> v; if (!fin) { cout << "c:\\windows\\system.ini 열기 오류" << endl; } while (getline(fin, temp)) { v.push_back(temp); } cout << "C:\\windows\\system.ini 파일 읽기 완료" << endl; cout << "라인 번호를 입..........



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