User Tools

Site Tools


programming_tutorial

This is an old revision of the document!


Introduction

This tutorial is a basic introduction to programming. It is written with the assumption that the student has never written a computer program before beginning with the basic program structure and the ever popular "Hello, world!" program.

The language is based on the C++ programming language with initially some of the confusing aspects abstracted away. These concepts will be reintroduced later once the student is comfortable. By the end of the tutorial the student should have gained enough knowledge of the C++ language and general programming skills to be able to write useful and interesting programs.

Program Structure

The example programs in this tutorial use a special header file tutorial.h that is intended to keep the examples extremely simple. This file can be downloaded from here.

Hello, World!

example1.cpp
#include "tutorial.h"
 
void t_main()
{
    print("Hello, world!");
}
programming_tutorial.1349218032.txt.gz · Last modified: 2023/08/18 18:15 (external edit)