• CSE207 객체지향 강좌 및 C++ 관련, 누구나 묻고 답하는 게시판 입니다.
  • CSE207 수강생이 아니여도 편안하게 질문하세요.
  • 첨부화일은 이미지 화일 혹은 zip 화일로 업로드 하기를 권합니다.

제목lap7 응용문제 4 질문입니다 ㅠㅠㅠㅠㅠㅠ2019-10-01 18:17
작성자
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main(){
ofstream fout("output.txt");
ifstream in("dat1.txt");
string a;
string b;

if (!in.is_open()) {
cout << "Error: no such file exists" << endl;
exit(100);
}
while (in) {
getline(in, a);
fout << a << endl;
}

fout << endl << endl;
in.close();
in.open("dat2.txt");

if (!in.is_open()) {
cout << "Error: no such file exists" << endl;
exit(100);
}
while (in) {
getline(in, b);
fout << b << endl;
}

fout.close();
return 0;
}


ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ까지 짰는데


이 결과물이 
On its 60th anniversary in 2009, Kyung
Hee University prepared for a second leap
forward while seeking a new
paradigm of future
university development.
university development.


In this paper, we explore the feasibility of a
medical training system for breast tumor palpation
based on haptic augmented reality (AR) technology.
based on haptic augmented reality (AR) technology.

이렇게 마지막줄이 2줄씩 나옵니다 당최 하루종일 고민해봤는데 당최이유를 알수가없어서 질문남깁니다 ㅠㅠㅠ


댓글