Programming in C
<< Damn it.. What was it again? >>
Step 1: Type vi Bob.c
Opens the editorStep 2: Type the program. (note the use of INSERT button)Step 3: Click ESC and then type :wq and ENTERStep 4: Type gcc Bob.cCompiles the program and returns errors if wrong.
If wrong, open the editor and correct it.Step 5: Type ./a.outFor 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 2 - Data Structures]
Links I found helpful:
My online debugger:
mycplus.com: