際際滷

際際滷Share a Scribd company logo
reverse / merge
(line by line ??)
??????
20113288
???
???? ?? 1.
File_0001 File_0002
File_0001? File_0002? ??? line by line?? merge?? ?? ????(fgetc) ??
(??, reverse ??? ??)
???? ?? 2.
?? ???? ?? ?? ???? ??
?? 1.
? Struct? File_info Array? Pointer? ??
?? ????(array) ?? ????(pointer)
1? 79.267917 sec 63.229868 sec
2? 68.776938 sec 56.908835 sec
3? 73.287495 sec 53.977088 sec
4? 71.482847 sec 57.190668 sec
5? 73.252257 sec 56.038504 sec
?? 73.2134908 sec 57.468992 sec
?? ?? 1.
?? ???? ?? ?? ???? ??
?? 2.
? fwrite -> fprintf ??
(? ??? ?? X)
?? ????(fwrite) ?? ????(fprintf)
1? 63.229868 sec 76.682819 sec
2? 56.908835 sec 64.244912 sec
3? 53.977088 sec 66.005956 sec
4? 57.190668 sec 64.928319 sec
5? 56.038504 sec 68.441263 sec
?? 57.468992 sec 68.060653 sec
???? 2.
?? ???? ?? ?? ???? ??
?? 3.
? Struct variable naming ??
??? ???? ??, ??? ??
?? 3.
? Struct variable naming ??
?? ???? ?? ????

More Related Content

Hw1 2 20113288_???

  • 1. reverse / merge (line by line ??) ?????? 20113288 ???
  • 2. ???? ?? 1. File_0001 File_0002 File_0001? File_0002? ??? line by line?? merge?? ?? ????(fgetc) ?? (??, reverse ??? ??)
  • 3. ???? ?? 2. ?? ???? ?? ?? ???? ??
  • 4. ?? 1. ? Struct? File_info Array? Pointer? ?? ?? ????(array) ?? ????(pointer) 1? 79.267917 sec 63.229868 sec 2? 68.776938 sec 56.908835 sec 3? 73.287495 sec 53.977088 sec 4? 71.482847 sec 57.190668 sec 5? 73.252257 sec 56.038504 sec ?? 73.2134908 sec 57.468992 sec
  • 5. ?? ?? 1. ?? ???? ?? ?? ???? ??
  • 6. ?? 2. ? fwrite -> fprintf ?? (? ??? ?? X) ?? ????(fwrite) ?? ????(fprintf) 1? 63.229868 sec 76.682819 sec 2? 56.908835 sec 64.244912 sec 3? 53.977088 sec 66.005956 sec 4? 57.190668 sec 64.928319 sec 5? 56.038504 sec 68.441263 sec ?? 57.468992 sec 68.060653 sec
  • 7. ???? 2. ?? ???? ?? ?? ???? ??
  • 8. ?? 3. ? Struct variable naming ?? ??? ???? ??, ??? ??
  • 9. ?? 3. ? Struct variable naming ?? ?? ???? ?? ????