Index of /cse121/lecture/week02

Icon  Name                     Last modified      Size  Description
[DIR] Parent Directory - [IMG] convert-flowchart.gif 11-Jul-2008 11:28 3.8K [TXT] convert-flowchart.txt 11-Jul-2008 11:41 1.2K [TXT] convert-output.txt 11-Jul-2008 11:48 2.5K [TXT] convert-requirements.txt 11-Jul-2008 11:48 1.8K [   ] convert.c 11-Jul-2008 11:32 697 [   ] div0.c 09-Jul-2008 15:18 322 [   ] div0.exe 08-Jul-2008 20:11 15K [TXT] nanorc.txt 07-Jul-2008 20:02 241
nanorc.txt: the file must be named .nanorc and must be in your home directory

------------------------------------------------------------------------------
div0.exe was compiled on Windows XP with the MinGW GCC C compiler. Download
it and execute it in a Windows Console to see how GCC and Windows handle
division by 0.

------------------------------------------------------------------------------
Some additional useful vi commands:

    Cursor movement,
    delete, and copy
        0, $                # (zero, not 'oh') move to beginning, end of line
        D                   # delete to end of line
        d$, d0              # (zero) delete to end, beginning of line
        y$, y0              # yank to end, beginning of line

    Join lines
        J                   # join this line with next line

    Commands beginning with ':' are "ex" commands and must be terminated with
    the <ENTER> key

        :5,10d              # delete lines 5-10
        :5,10y              # yank lines 5-10
        :.,10d (y)          # delete (yank) from current line to line 10
        :21,$d (y)          # delete (yank) from line 21 to end of file
        :4                  # another way to go to line 4
        4G                  # equivalent vi command, <ENTER> not required
        :1,3m8              # move lines 1-3 to follow line 8
        1G, 3dd, 8G, p      # 4 separate vi commands equivalent to above
        :5,10#              # temporarily display line numbers for lines 5-10
                              (will display at bottom and wait for command)

    Go to matching bracket
        %                   # when cursor is on {, (, [, go to next }, ), ]

------------------------------------------------------------------------------