| 
이프로젝트를 만드는데 문제는 첨부 파일에 있고요.
ATHLETE.CPP(ATHLETE.H),EVENT.CPP(EVENT.H),PROATHLETE.CPP(..H),MENU.CPP 중에 EVENT.CPP 부분인데요
 개인정보를 ATHLETE 에서 저장해서 이 부분에서 읽어서 ARRAY 이로 등록 부분인데..
 이걸어케 풀어야 될지 모르겠습니다..
 이 프로젝트에 도움을..
 #include "Event.h"
 #include <iostream>
 #include <fstream>
 #include <string>
 using namespace std;
 
 void Event :: GetRecord()
 {
 string Name,Surname,Number,TelNum,Address;
 int BirthDay, BirthMonth, BirthYear;
 cout<<Name<<endl;
 int I=0;
 ifstream Infile;         //declarations
 ofstream Outfile;
 
 Infile.open("Athlete.txt");
 Outfile.open("Output.txt");
 
 while (Infile)
 {
 Infile >> Name;
 Array[I].getName();
 Outfile << Name;
 
 Infile >> Surname;
 Array[I].getSurname();
 Outfile << Surname;
 
 Infile >> Number;
 Array[I].getNumber();
 Outfile << Number;
 
 Infile >> BirthDay;
 Array[I].getBirthDay();
 
 Infile >> BirthMonth;
 Array[I].getBirthMonth();
 
 Infile >> BirthYear;
 Array[I].getBirthYear();
 
 Infile >> TelNum;
 Array[I].getTelNum();
 
 Infile >> Address;
 Array[I].getAddress();
 
 I++;
 }
 Infile.close();
 Outfile.close();
 
 }
 
 
 |