?: reverse - PowerPoint PPT Presentation

About This Presentation
Title:

?: reverse

Description:

?: reverse. Step 1. Parse command line. parseCommandLine, processOptions. Step 2 ... reverse the line if the -c option was chosen. pass2 ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 3
Provided by: csSookm
Category:
Tags: reverse

less

Transcript and Presenter's Notes

Title: ?: reverse


1
? reverse

File
30
75
102
156
...
\n
\n
\n
\n
LineStart
0
0
1
30
2
75
3
102
...
n
2
? reverse
  • Step 1
  • Parse command line
  • parseCommandLine, processOptions
  • Step 2
  • open input file for reading
  • read from file, storing the starting offset of
    each line in an array
  • pass1( ), trackLines
  • Step 3
  • read the input file again backward, copying each
    line to stdout
  • reverse the line if the -c option was chosen
  • pass2( )
Write a Comment
User Comments (0)
About PowerShow.com