pawsen / c-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Various c/cpp examples

Files in root dir should compile easily, ie.

clang -o word-count.out word-count.c
clang++ -o student-class.out student-class.cpp

or likewise with gcc

Files in directories will require either a makefile or multiple cli-commands

With emacs, we can use the emacs-quickrun package. Example; open word-count.c and run

M-x quickrun-compile-only
# and then run the program in the shell. *OR*
M-x quickrun-arg RET word-count.c u

About


Languages

Language:C++ 86.3%Language:C 11.6%Language:Makefile 2.1%