How to program C in Linux


<< Damn it.. What was it again? >>

Step 1:    Type vi Bob.c
                                   Opens the editor

Step 2:    Type the program.  (note the use of INSERT button)

Step 3:     Click ESC and then type :wq and ENTER

Step 4:     Type gcc Bob.c
                                   Compiles the program and returns errors if wrong.
                                    If wrong, open the editor and correct it.

Step 5:    Type ./a.out
                                    For repeated outputs, click the up or down arrow keys. 
                                    Previous commands saved and retrieved throught this process
Comments