Programming in C

<< 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

 ^ How to execute programs in linux terminals? 


All programs done in class and given as homework will be covered in the following links.

Click here. [Semester 1 - Introduction to Computers]

Click here. [Semester 2 - Data Structures]
 


Links I found helpful:

My online debugger:

mycplus.com: