디시인사이드 갤러리

갤러리 이슈박스, 최근방문 갤러리

갤러리 본문 영역

밑에 파일 입출력 물어본 늅인데 이게 프로젝트 원문이야

ㅂㅈㅇ(163.152) 2010.11.12 17:04:43
조회 76 추천 0 댓글 1

프로젝트 본문은 이래


Project 1<o:p></o:p>

Data Structures (CNCE201)<o:p></o:p>

Fall 2010<o:p></o:p>

Project Deion<o:p></o:p>

<o:p> </o:p>

In thisproject, you will develop a simple information management system to be used byan organization in managing program activity information of its members participatingin a certain program. The activity information is arranged for everyparticipating member, all sorted by the participant’s employee id as the key. Eachparticipant’s activity information comprised a set of information pieces as pictoriallyshown below:

  

Eid

  
  

Employee  id (one character M|U followed by 6 digits)

  
  

Lname

  
  

participant’s  last name (up to 16 characters)

  
  

Fname

  
  

participant’s  first name (up to 16 characters)

  
  

gen

  
  

gender:  (a gender code: 0..1)

  
  

Actinfo

  
  

activity  information details

  

The activityinformation details, as pictorially shown below, enlist the detailedinformation on every activity in which the member participates.

  

Actid

  
  

activity  identifier (interger: 1..100)

  
  

Jdate

  
  

date  of activity joining (a date code of 8 digits)

  
  

Level

  
  

achieved  level in the activity (integer: 1..9)

  

  

The program,starting with no data put in the system, first creates an empty linked list ofactivity participants, then iterate at the top level of reading and processingcommands for activity information management. The system will handle thefollowing commands:

dump_all_participants<o:p></o:p>

add_Actinfo<o:p></o:p>

delete_Actinfo<o:p></o:p>

change_Actinfo<o:p></o:p>

show_participant_info<o:p></o:p>

end<o:p></o:p>

<o:p> </o:p>

Thesyntax of the commands will be shown by a set of sample commands to be providedlater.  

<o:p> </o:p>

Work to be submitted<o:p></o:p>

Thefollowing files, all zipped together in one zip file, should be submitted dueby 24:00 p.m. of Monday November 15:

1)      source code file: <u>xxxxxxxx</u>dman.c

2)      executable file: <u>xxxxxxxx</u>dman.exe

3)      output file: <u>xxxxxxxx</u>out.<u>yyy</u>

4)      project note: <u>xxxxxxxx</u>PN<u>.yyy</u>  (this file is optional and will not be graded)

where

   <u>xxxxxxx </u>stands for the last 7 digitsof your student ID and

   <u>yyy</u> stands for appropriateapplication file extension widely recognized on MS Windows platform.




Project 1<o:p></o:p>

Data Structures (CNCE201)<o:p></o:p>

Fall 2010<o:p></o:p>

Input data specification<o:p></o:p>

<o:p> </o:p>

Theinput that the program you will build for Project 1 will accept will meet thefollowing specifications:

1.      The system will read in asequence of user commands from a file named as “dman.txt” stored in thedirectory where the executable program is located;

2.      Each command will be delimitedby a pair of brackets ([ and ]);

3.      Each user command will beidentified in the input by a command code as defined below:

  

command

  
  

code

  
  

dump_all_participants

  
  

10

  
  

add_Actinfo

  
  

11

  
  

delete_Actinfo

  
  

12

  
  

change_Actinfo

  
  

13

  
  

show_participant_info

  
  

14

  
  

end

  
  

15

  

4.      Gender information will becoded by the gender code as defined below:

  

gender

  
  

code

  
  

male

  
  

1

  
  

female

  
  

2

  

<o:p> </o:p>

5.      Each information field in acommand will be led by a field identifier as defined below and followed by anequal sign (=);

  

Eid

  
  

eid

  
  

Lname

  
  

ln

  
  

Fname

  
  

fn

  
  

gen

  
  

gen

  
  

Actinfo

  
  

aid

  
  

Jdate

  
  

jd

  
  

Level

  
  

lv

  

6.      The end of each informationfield is delimited by at least one white space except for the last one, whichmay or may not be delimited by white spaces.

7.      For a member whose data is tobe newly added in the database, the command must provide all the informationfields;

8.      For a member whose data isalready in the database, the command may not contain the information fieldsthat remain unchanged except for the key fields (Eid and Actinfo);

9.      As of now, there are 10activities handled by the system which are identified by the activity codes asdefined below:

<o:p> </o:p>

<o:p> </o:p>

  

Activities

  
  

codes

  
  

Activities

  
  

codes

  
  

tennis

  
  

101

  
  

table  tennis

  
  

106

  
  

badminton

  
  

102

  
  

swimming

  
  

114

  
  

chess

  
  

103

  
  

sports  dance

  
  

116

  
  

chorus

  
  

104

  
  

bridge

  
  

121

  
  

body  building

  
  

105

  
  

debate

  
  

132

  

  

  

Anexample given below shows a possible command sequence:

<o:p> </o:p>

[ 11eid=U431 ln=Brown fn=Ted gen=1 aid=103 jd=20080413 lv=0 ]

[ 11eid=M26 ln=Utkoff fn=Mary gen=2 aid=104 jd=20091003 lv=0 ]

[ 11eid=U257 ln=Doe fn=John gen=1 aid=114 jd=20091103 lv=0 ]

[ 11eid=M26 aid=116 jd=20100110 lv=0 ]

[ 10 ]

[ 13eid=M26 aid=104 lv=1 ]

[ 14eid=M26 ]

[ 11eid=U257 aid=116 jd=20100113 lv=1 ]

[ 12eid=U257 aid=114 ]

[ 12 eid=U431aid=103 ]

[ 10 ]

[ 15 ]

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> 이거 프로젝트 원문 ㅇㅇ</o:p>



추천 비추천

0

고정닉 0

0

댓글 영역

전체 댓글 0
등록순정렬 기준선택
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 제목 글쓴이 작성일 조회 추천
설문 연예인 안됐으면 어쩔 뻔, 누가 봐도 천상 연예인은? 운영자 24/06/17 - -
228588 대충 마무리하고 올림 [3] cyluss갤로그로 이동합니다. 11.01.03 84 1
228587 아 휘붕 안드로이드 [2] Finalizer갤로그로 이동합니다. 11.01.03 101 0
228586 늦은 입문 (3일째) [2] 나도야(125.31) 11.01.03 74 0
228585 에라이 [3] cyluss갤로그로 이동합니다. 11.01.03 79 0
228584 염장인걸 알면서도 짝 다봤다.. [3] 꿀레갤로그로 이동합니다. 11.01.03 106 0
228583 피망은 왜 탈퇴하려고 하는데도 액티브 깔라고 지랄이지ㅡㅡ;;;; [2] (211.222) 11.01.03 85 0
228582 html5 동영상이 플래시 동영상보다 가볍고 빨라질 수가 잇을가여? [12] 갤러리갤로그로 이동합니다. 11.01.03 152 0
228581 뉴비가 질문하나만 ㅜㅜ.... [2] 흐잉잉(112.184) 11.01.03 83 1
228578 VS2008 설치할 때 [9] 왁스맛치즈갤로그로 이동합니다. 11.01.02 91 0
228577 HTML 문서 파싱 아오 -_- [13] cyluss갤로그로 이동합니다. 11.01.02 214 0
228576 헐헐헐 나 그러고보니 대학교는 공대 확정인가.........? [1] BTTTS!갤로그로 이동합니다. 11.01.02 69 0
228575 포트란 고수님들 질문좀 할게염 [9] 포트란 뉴비(124.61) 11.01.02 141 1
228574 빌게이가 사라진후로 MS라는 명성이 예전만 못한건 사실인거같다. [4] (211.198) 11.01.02 141 0
228573 근데 VS2010도 써봤는데 계속 디버깅 오류도 뜨더라구요 [4] 히라링♪갤로그로 이동합니다. 11.01.02 83 0
228572 니들 SBS에서하는 짝이나 보자 [2] 꿀레갤로그로 이동합니다. 11.01.02 60 0
228571 근디 WP7 6주 150만대 나갔는데 나름 선방 아님?? [3] 시불라미갤로그로 이동합니다. 11.01.02 87 0
228570 니들이 지금 실버라이트 걱정할떄냐? [5] (211.198) 11.01.02 99 0
228569 뉴비가 질문좀 할게요. [9] (203.128) 11.01.02 87 0
228568 Dev- c++ 질문 하나만 [8] 히라링♪갤로그로 이동합니다. 11.01.02 155 0
228567 결국 구글이 천하를 가져가겠지.. [4] Finalizer갤로그로 이동합니다. 11.01.02 128 0
228565 MS가 요즘 얼마나 허둥대는지 윈도우폰7을 보면 알 수 있음. [28] (175.120) 11.01.02 210 0
228564 횽들 자격증 뭐 따는게 좋을까?ㅠ_ㅠ [6] 234(121.139) 11.01.02 212 0
228563 이게 뭐게 [15] 갤러리갤로그로 이동합니다. 11.01.02 245 0
228562 뉴스보다가 어처구니 없는 사건을 봤다. [7] ㅇㅇ(211.198) 11.01.02 162 0
228561 후...목장딸 아는 커뮤니티에 올렸다가 폭풍까이는중 [11] 꿀레갤로그로 이동합니다. 11.01.02 328 0
228560 개발할때 팩키지명 보통 어떻게들 쓰세여? [6] yankuk갤로그로 이동합니다. 11.01.02 177 0
228559 google app engine text search 아는 용자? shunman(118.223) 11.01.02 65 0
228557 비밀번호 길이 제한걸고 특문 못쓰게 하는넘들 [3] DMW(125.138) 11.01.02 179 1
228556 형들형들 [2] ㅁㄴㅇㄹ(59.28) 11.01.02 64 0
228555 와.. 씨방새 [4] 갤러리갤로그로 이동합니다. 11.01.02 112 0
228553 디씨 해킹도 안막나여. [1] Finalizer갤로그로 이동합니다. 11.01.02 93 0
228552 형들 네이트온 로그인기록 삭제하는법좀 알려주세요~ [22] 끄아(175.208) 11.01.02 1396 0
228551 비밀번호에 대문자 못쓰게 하고 10자 제한거는 새1끼들은 무슨 생각임? [3] 갤러리갤로그로 이동합니다. 11.01.02 185 0
228550 여기는 컴퓨터 고장이나 프로그램 사용법을 물어보는 곳이 아닙니다. [78 [1] Rei@디씨갤로그로 이동합니다. 11.01.02 91 0
228549 군대를 전산쪽(그냥 행정병말고)으로 나온분 계시는감? [12] 십만원(125.132) 11.01.02 159 0
228548 인터넷 끊김 도움좀.. [7] 도움좀(122.43) 11.01.02 82 0
228547 횽들 C# 실전프로젝트 책같은거 추천 좀 부탁해! [2] ㅇㅂㅇ(119.71) 11.01.02 151 0
228545 키보드 비싼거 써서모하나여 [3] Finalizer갤로그로 이동합니다. 11.01.02 136 0
228544 선호하는 파이선 개발 환경은???? [3] 시불라미갤로그로 이동합니다. 11.01.02 222 0
228543 솔직히 만원짜리 키보드 쓰는 애들이 코딩이 뭔지나 알겠냐? [2] DMW(125.138) 11.01.02 274 0
228542 디씨 해킹당하는데 디씨가 대응하지 않는 이유 [5] 갤러리갤로그로 이동합니다. 11.01.02 176 0
228541 와 아이패드로 보니까 디씨 왼쪽 위에 중꿔말 써있네 마루■갤로그로 이동합니다. 11.01.02 68 0
228540 2ch 윤아에 빠진 그들... 꿀레갤로그로 이동합니다. 11.01.02 147 0
228539 안녕하세요 고딩인데요 프로그래밍 갤러리 여러분들께 질문좀 [18] 고딩(122.128) 11.01.02 188 0
228538 C# 에서 인덱서랑 프로퍼티 많이 사용됨? [7] ㅇㅂㅇ(119.71) 11.01.02 97 0
228537 세상에 이럴수가 봉지 고래밥이 존재하다니!! [2] DMW(125.138) 11.01.02 170 0
228536 Ada 언어는 아직도 20 권 안에 있네....ㅎㅎ [5] dkdkdk(118.127) 11.01.02 178 0
228535 저급언어 쓰는사람은 있음? [9] 박돌똘갤로그로 이동합니다. 11.01.02 186 0
228534 똥을 굵게싸서 똥꾸멍이 찢어져서 아퍼 [4] elwlwlwk갤로그로 이동합니다. 11.01.02 100 0
228533 개쉚기횽 소환 [22] 넉넉한터갤로그로 이동합니다. 11.01.02 142 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2