a2ps command
to get printed copy of source files.pico, emacs or vim ).gcc to compile your program.
TO DO (for today's lab)
pico (for the pico editor)emacs (for the emacs editor)vim (for the vim editor)Here $ represents command prompt.
/* helloworld.c
* CS 201 - by(your name here) on (current date here)
*/
# include <stdio.h>
int main(void)
{
printf("Hello World!\n");
exit(0);
}
# Makefile for helloworld
# CS201 - by(your name here) on (current date here)
helloworld: helloworld.o
gcc -o helloworld helloworld.o
helloworld.o:helloworld.c
gcc -c helloworld.c
./helloworld) and make sure that you see the output in the screen.
a2ps -P orca helloworld.c Makefile answers.txt