Machine Learning in C

Series: Introduction to C Language

Learn by tutorial examples

Learn the basics of the C programming language. We start with a gentle introduction to why C is such a useful and powerful language, and gradually introduce the various elements and structure of the language. This series of tutorial examples is by no means complete and only serves to get you moving in the right direction. Sufficient details are given so you can understand the MLC code on this site. However, it is anticipated that you may need to supplement the articles by using other references and sources of information.

Getting Started Part One
On-line references and the build process.
main_1.c
Your first C program to play with.
readme.txt
Compiler instructions for Linux, Windows and Mac.
Getting Started Part Two
Comments and Key Words.
Getting Started Part Three
Data Operators.
Functions
Defining and using functions.
main_1.c
The main() function.
main_funcs.c
Examples of C functions.
Data Types Part One
Basic C data types.
main_data_types.c
Examples of data types.
Data Types Part Two
More complex arrangements of your data.
main_data_types.c
Examples of data types.
Pointers and Arrays
How data is organised in memory.
main_pointers_arrays.c
Pointers and arrays.
Flow Control
How to make decisions.
main_flow_control.c
Decision, decisions, decisions ...
Preprocessor Directives
Changing how the code is compiled and supporting multiple platforms.
main_preprocessor_1.c
Example preprocessor directives.
poor_include.c
A bad way to use #include.
some_header.h
Header files.
Source Code, Compiling and Linking
Organising your source code and creating projects.
trivial_maths.h
Example header file.
trivial_maths.c
Example source file.
main_source_headers_1.c
Example sources and headers.
Makefile
GNU Makefile.
win_makefile
Windows nmake file.
Input and Output
User interaction through the console.
main_input_output_1.c
Input and output to the console.
Summary
To sum it all up.
perceptron.c
Putting it all together with your first machine learning program.