Skip to content

Example of a perfectly commented and formated code

License

Notifications You must be signed in to change notification settings

luc65r/how-to-comment-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to comment code

This is an example of some C code that is perfectly commented and formated. There is even a Python script to format correctly the C code!

Example

The perfectly commented and formated C code given as an example is here.

Have look, you will be amazed how easly understandable a correctly commented and formated C code is!

You can try to execute the example code by doing make, then ./program 100. See? The output is as expected!

Usage of the Python script

./format.py < some_badly_formated_code.c > perfectly_formated_code.c

About

Example of a perfectly commented and formated code

Resources

License

Stars

Watchers

Forks