코딩좀 부탁드릴꼐요 ㅠㅠ
새늘
질문 제목 : c언어 파일변환 교수님께서 이번에 과제를 내셨는데 수업중 알려주지 않으신 부분을 내셔서 과제를 풀수가 없습니다 ㅠㅠ 문제 잘 읽어 보시고 코딩하실수 있으신 분은 제발 코딩하여서 알려주셨으면 합니다 ㅠㅠ 부탁드립니다...질문 내용 :
1. write a program which can read the following file (“input.file”), and write on a file (“output.file”) (please use three different arrays for three items given below) :
beginning of file
2011 100.0 plane
2012 214.5 whee
2013 104.8 xdivice
2008 500.9 ydivice
2009 600.8 zdivice
2009 600.8 zdivice
1999 300.4 venture
1988 600.5 right
1934 100.4 atoms end of file 2. the following file (‘input.file’) shows profits of a company over recent years :
beginning of file
year=1990 profit=200.0
this is a dummy line.
this is also dummy line.
year=1991 profit=300.0
this is a dummy line.
this is also dummy line.
year=1992 profit=400.0
this is a dummy line.
this is also dummy line.
year=1993 profit=500.0
this is a dummy line.
this is also dummy line.
this year has additional dummy line.
year=1994 profit=450.0
this is a dummy line.
this is also dummy line.
year=1995 profit=460.0
this is a dummy line.
this is also dummy line.
year=1996 profit=470.0
this is a dummy line.
this is also dummy line.
year=1997 profit=480.0
this is a dummy line.
this is also dummy line.
year=1998 profit=490.0
this is a dummy line.
this is also dummy line.
year=1999 profit=490.0
this is a dummy line.
this is also dummy line.
year=2000 profit=490.0
this is a dummy line.
this is also dummy line.
end of file
please write a program which can read profits versus years from the above file (‘input.file’) and can write the results (profit versus year, and the sum of profits) on a file (‘output.file’).
-
꽃여름
헉 네 알겠습니다!!
-
너에게
이 글은 요청게시판이 더 잘 어울립니다.
-
마음
자세한건 인터넷에 구하면 금방 나옵니다 ㅎㅎ; 구글갓님이..
-
횃대비
파일입출력을 수업중 안가르쳐 주셔서요 ㅠㅠ 인터넷으로 찾으면서 해야할까요?? 입출력 선언을 어찌해야 하는지.. ㅜㅜ
-
헛나발
파일입출력에 대한 간단한 문제 같은데요.... FILE* 잘 찾아보시고 풀면 좋을것 같네요~
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2692483 | C언어 함수, Header | 떠나간그놈 | 2025-04-23 |
2692451 | 이 문제좀 풀어주세요 ^^ | 게자리 | 2025-04-23 |
2692424 | 2차원배열 자료입력질문이요! (1) | 똘끼 | 2025-04-22 |
2692401 | 유닉스안에서 C언어를 이용한 명함 만들기 입니다; 이해안가는 부분이있네요 | 2gether | 2025-04-22 |
2692374 | 고수님들 댓글 마니부탁해요!!! (2) | 엄지 | 2025-04-22 |
2692343 | scnaf에 자꾸 선언을 참조하라는데;; (8) | 도래 | 2025-04-22 |
2692282 | 도스상에서 생성된 exe파일에 press~ 뜨게 하기 (4) | 회사원 | 2025-04-21 |
2692256 | scanf("%*c"); ㅠㅠ 고수님들 | 거북이 | 2025-04-21 |
2692230 | 하노이탑 질문입니다. (1) | 미쁘다 | 2025-04-21 |
2692210 | 정보 올림피아드 문제인데.. 풀이 과정이 궁금합니다.(재귀함수) (5) | 물티슈 | 2025-04-20 |
2692144 | C언어와 리눅스에 대한 질문입니다. | 싴흐한세여니 | 2025-04-20 |
2692114 | 컨텍스트 스위칭하는데 걸리는 시간 측정.. | YourWay | 2025-04-19 |
2692086 | 간접참조 연산자, 증감연산자 질문이용! (2) | 블랙캣 | 2025-04-19 |
2692056 | 주석좀 달아주세요. 몇개적엇는데 몇개만달아주세요. (2) | DevilsTears | 2025-04-19 |
2691978 | 진수 쉽게 이해하는법... (3) | 지지않는 | 2025-04-18 |
2691949 | getchar() 한 문자를 입력받는 함수 질문 | 채꽃 | 2025-04-18 |
2691919 | 배열 정렬 및 합치기 질문입니다. | 사과 | 2025-04-18 |
2691845 | c언어왕초보 질문이 있습니다........ | 루나 | 2025-04-17 |
2691815 | void add(int num); 함수... (4) | 살랑살랑 | 2025-04-17 |
2691756 | 명령 프롬프트 스크롤바가 없어요 | 두메꽃 | 2025-04-16 |