C++Tutorial for Beginners 72 - What Next?

In this video we'll talk about stuff you might want to do next after learning....

C++Tutorial for Beginners 71 - Languages Overview

In this tutorial we'll have a quick overview of some of the different languages related to C++....

C++Tutorial for Beginners 70 - Realistic Particle Motion

In this tutorial we'll tweak the motion of our particles to make the explosion look....

C++Tutorial for Beginners 69 - Implementing Box Blur

This is a tutorial on implementing box blur in C++....

C++Tutorial for Beginners 68 - Bitwise “(And)”

A tutorial on bitwise 'and', otherwise known as ........

C++Tutorial for Beginners 67 - Ensuring Constant Speed

Somehow we need to make sure that our particles move at a constant speed, rather than just moving as fast as they are able to....

C++Tutorial for Beginners 66 - Creating an Explosion

Now it's time to make our particles explode!....

C++Tutorial for Beginners 65 - Animating Particles

In this tutorial we'll take a look at how we can make our particles actually move around!....

C++Tutorial for Beginners 64 - Creating Particles (Starfields!)

In this tutorial we'll draw a starfield by creating a bunch of particles with random locations.....

C++Tutorial for Beginners 63 - Animating Colors

Now that we've got some coloured pixels on the screen, we can make the colours change from moment to moment, doing some nifty colour animation.....

C++Tutorial for Beginners 62 - Setting Pixel Colors

In this tutorial we'll look at how we set the colour of individual pixels on the screen.....

C++Tutorial for Beginners 61 - Textures, Renderers and Buffers

A renderer is a piece of software that draws bitmaps or pixels on the screen. A texture is basically a bitmap (a collection of pixels)....

C++Tutorial for Beginners 60 - Creating an SDL Window

Now we can create a window using SDL. When you're writing a game or a simulation or some kind of graphics program, there's nothing quite so exciting as getting that first blank window up and running!....

C++Tutorial for Beginners 59 - A Basic SDL Program

Now it's time to look at how to put together a very minimal SDL program....

C++Tutorial for Beginners 58 - Aquiring Simple Direct Media Layer

This video's on how to get hold of SDL, Simple Direct media Layer. SDL is a C++ library that you can link with your program, providing you with facilities to draw on the screen....

C++Tutorial for Beginners 57 - Using C++ Libraries

In this video we'll talk about C++ libraries on various operating systems. Libraries are archives of pre-built code that you can use in your own application by 'linking' with them....

C++Tutorial for Beginners 56 - Particle Fire Explosion

In most of the rest of this course, I'm going to show you how to create a graphics program in C++. Not only will this give you a great workout with C++ - if you follow along with your own code and especially if you try to modify the code in interesting ways - but it will also....

C++Tutorial for Beginners 55 - Static Variables

ometimes you need a variable that is shared between all objects of a particular class, and in fact belongs to the class rather than to objects.....

C++Tutorial for Beginners 54 - Twos Complement

It's time to return to how integers are stored in computer memory, as I promised many videos ago. Although this is a little bit complicated,....

C++Tutorial for Beginners 53 - Constructor Inheritance

Things get a little bit tricky with regard to constructors when you create derived classes. Each of the constructors....

C++Tutorial for Beginners 52 - Encapsulation

Encapuslation is an idea that focuses on creating self-contained, reusable classes, and clean code. The idea is to hide away the guts of your class....

C++Tutorial for Beginners 51 - Inheritance

Inheritance is one of the building blocks of object-orientation, allowing you to create classes that extend or change the functionality of existing classes. For example, if you're writing an applicati....

C++Tutorial for Beginners 50 - Namespaces; Organise Your Classes

Click here to download source code for this tutorial.....

C++Tutorial for Beginners 49 - Arrays and Functions

Click here to download source code for this tutorial.....

C++Tutorial for Beginners 60 - Creating an SDL Window

C++Tutorial for Beginners 60 - Creating an SDL Window....

C++Tutorial for Beginners 48 - Allocating Memory

One of the great things about C++ is that it allows you to manage memory down to the byte. Although this is not an easy business, it allows your C++ programs to be incredibly efficient and stops them doing the programming equivalent of....

C++Tutorial for Beginners 47 - Returning Objects from Functions

Returning objects from functions is a little tricky in C++, at least in C++ 98. We'll take a look at how to avoid common pitfalls in this tutorial. If you want an even better way to handle it, check out my C++ 11 tutorial....

Setting Up SDL for C++ with Eclipse on Windows

This article contains very detailed instructions for setting up SDL with MinGW and Eclipse on Windows. Thanks to Todd Mowery for providing this information.....

C++Tutorial for Beginners 46 - The New Operator; Allocating Memory in C++

The new operator in C++ allows us to allocate memory. This is the source of a lot of C++'s power; we can explicitly allocated the amount of memory we need, and refer to it using pointers. On the other....

C++Tutorial for Beginners 45 - Copy Constructors; Creating Copies of Objects

Being able to copy an object is vital in C++. There are two ways to do this; one is via an overloaded assignment (=) operator, covered in my advanced course. Another is to provide a special constructo....

C++Tutorial for Beginners 44 - Const; a Vital Tool for Reducing Bugs

The const keyword gives you a way of creating constants in C++; that is, variables that don't change (and so aren't really variables). While this sounds a bit boring, it can actually hugely aid you in....

C++Tutorial for Beginners 43 - References; Nicer than Pointers!

Pointers are great, but there's an even easier way to handle the business of passing variables to subroutines which the subroutines then change; it's called references. References are aliases to exist....

C++Tutorial for Beginners 42 - Reversing a String (Interview Question!)

A favourite question of interviewers has long been how do you reverse a string, without using any built-in subroutines. The popularity of the question owes much to the fact that they can actually ask....

C++Tutorial for Beginners 41 - Char Arrays: Primitive Strings in C++

There are actually two kinds of string in C++; the class-type strings that we've already seen, and the more primitive char arrays. Primitive strings take up very little space and are often useful when....

C++Tutorial for Beginners 40 - Pointer Arithmetic; Adding, Subtracting and Comparing Pointers

Pointers can be added and subtracted, which sounds useless but is actually sometimes very useful. We can use pointer arithmetic to accomplish some rather deft manipulations of data that wouldn't other....

C++Tutorial for Beginners 39 - Pointers and Arrays

There's a strange and curious parallel between arrays and pointers in C++. It turns out, in fact, that they are almost the same thing and can be used interchangeably in some situations. We can make us....

C++Tutorial for Beginners 38 - Arithmetic Operators

Let's take a look at the arithmetic operators in C++, which include the familiar plus, minus and so on, plus the modulus oeprator. The division operator also behaves slightly oddly in C++; a fact whic....

C++Tutorial for Beginners 37 - Pointers; Where C++ Starts to Get Tricky

Pointers are not as hard as you might think ... they just require a little practice. The point at which many people give up with C++ is when they get to pointers. Suddenly we're dealing not just with....

C++Tutorial for Beginners 36 - Constructor Initialization Lists

Discover a quick, easy way to initialize instance variables in your C++ classes with constructor initialization lists. In fact, constructor initialization lists are the only way to perform certain kin....

C++Tutorial for Beginners 35 - The “(this)” Keyword; A First Taste of Pointers

The this keyword seems mysterious to beginners, but as we'll see, it's not at all hard to start using it. this gives you a way of disambiguating between method parameters and variables of the same nam....

C++Tutorial for Beginners 34 - Overloading Constructors

Make your objects easy to use by giving them usable constructors! In this tutorial we'll take a look at constructor overloading in C++. You can give your classes multiple constructors, accepting diffe....

C++Tutorial for Beginners 33 - String Streams; Adding Number to Strings

String streams allow you to create strings in C++ from disparate data types; combining strings with ints, doubles and whatever you like. Some people use a function called sprintf for this, but those p....

C++Tutorial for Beginners 32 - Getters and Setters

Getters and setters (known as accessors and mutators by computing professors who fell asleep in 1990 and have just woken up, or else are very fond of formal language) provide you with a direct way of....

C++Tutorial for Beginners 31 - Constructors and Destructors

Often you want subroutines to run automatically when you create an object from a class, or what an object is destroyed. These special methods are known as constructors and destructors respectively. Co....

C++Tutorial for Beginners 30 - Data Members, a.k.a. Instance Variables

Classes are used in C++ programs as templates for creating objects; every object has, usually, not only some methods (subroutines) that define its behaviour, but also instance variables or properties....

C++Tutorial for Beginners 29 - Classes: The Foundation of Object-Oriented (OO) Programming

Now we get to a new exciting topic -- structuring programs using classes; blueprints for objects that model entities in the real world, or else (more often) logical parts of your program. We can begin....

C++Tutorial for Beginners 28 - Headers and Prototypes

So far we've been carefully defining functions in the right order in a single file. Headers and prototypes will free us from having to think about the order we define functions in, enabling us to ulti....

C++Tutorial for Beginners 26 - Return Values: Getting Data From Subroutines

Often we want to get a single value from a subroutine. In mathematics, a function is a routine that accepts one or more numbers, performs some kind of processing and returns a number as the result; C+....

C++ for Complete Beginners 27 - Function Parameters: Passing Data to Subroutines

We can pass data to functions if necessary. You can make your function configurable via parameters; you can then supply values for these parameters where you use your function; the values you supply a....

C++Tutorial for Beginners 25 - Functions: Using Subroutines in C++

Take your coding to the next level by learning how to use subroutines! Subroutines, also known as functions, are re-usable blocks of code that you can call wherever you need them in your program. Even....

C++Tutorial for Beginners 24 - Switch: Choosing Between Alternatives

The switch statement is a more elegant alternative to lengthy if-elseif constructs. Switch used to be considered slow, but these days the opposite is said to be true; switch is an optimised, fast vers....

C++Tutorial for Beginners 23 - Sizeof Multidimensional Arrays

You can use sizeof to find the size of a multidimensional array. It's a little tricky, but not too bad if your understanding of multidimensional arrays is good.....

C++Tutorial for Beginners 22 - Sizeof and Arrays

You can use sizeof to find out how many elements are in an array. All you need to do is divide the total size of the array by the size of the individual elements in it. Click here to download source....

C++Tutorial for Beginners 21 - Multidimensional Arrays

Multidimensional arrays allow you to represent grids and tables, or even the pixels that make up your computer screen. Click here to download source code for this tutorial.....

C++ Tutorial for Beginners 20: Arrays - Your C++ Shopping Lists

Arrays are a vital construct in nearly all programming languages. They allow you to deal with lists of semantically identical items, rather like a shopping list. A shopping list contains a bunch of it....

C++ Tutorial for Beginners 19 - Take Control of Your Loops with Break and Continue

The break and continue keywords allow you to truly take control of your loops, allowing you to break out of a loop whenever you need to, or skip loop iterations. Once you've added break and continue t....

C++ Tutorial for Beginners 18 - “(For)” Loops: The Swiss Army Knife of Loops

The for loop, found in many programming languages, is the most generic and useful of all loops. A little confusing initially for beginners, when you master this loop you've really taken a step forward....

C++ Tutorial for Beginners 17 - “(Do-While)” Loops

What if you need a loop but you need the code in your loop at always execute at least once, regardless of the loop condition? This is a surprisingly common situation in programming in general; in C++,....

C++ Tutorial for Beginners 16 - “(While)” Loops

Loops in C++ allow you to repeat actions in your program without having to physically type out the same lines of source code over and over! Which is what programming is all about ... Click here to d....

C++ Tutorial for Beginners 15: Complex Conditions

In this tutorial we'll take a look at complex conditions in C++ -- conditions built up using and and or. These conditions can potentially get very complicated and confusing, but we'll look at some tri....

C++ Tutorial for Beginners 14 - If/Else/Else-If - Choosing Between Multiple Options

If you want to choose between multiple different possible courses of action in your C++ program, you need an if/else-if/else statement (or else a switch, which we'll cover later). We'll take a look at....

C++ Tutorial for Beginners 13: If/Else

The If/Else statement lets you choose between two alternative actions in your program, which happens to be a very common requirement. Click here to download source code for this tutorial.....

C++ Tutorial for Beginners 12: The “(If)” Statement

If lets you choose the actions you take in your C++ program, making it do far more than just output things one after another. With if, you can take different actions depending on user input or the res....

C++ Tutorial for Beginners 11: Char and Bool

Char and Bool are two more important variable types to know about in C++, allowing you to represent characters and true or false values respectively. In this tutorial we'll take a look at how to use t....

C++ Tutorial for Beginners 10: Floating Point Variable Types - Double and Float

It's also possible to store and manipulate floating point numbers in C++. In this tutorial we'll take a look at floating-point types -- numbers that contain a decimal point. Again, we'll also look at....

C++ Tutorial for Beginners 9: Integer Variable Types

There are a whole bunch of different types of integer in C++, and we need to select the right one based on the size of the number we want to store and whether it's signed or unsigned. In this tutorial....

C++ Tutorial for Beginners 8: Binary Numbers and Computer Memory

Most of the time you don't really need to think about computer architecture when you're programming, but sometimes it's helpful to understand a bit about what's going on. This is particularly true in....

C++ Tutorial for Beginners 7 - Getting User Input With Cin

Now we can begin to make our program truly interactive, by getting input from the user. We can do this using cin, which sort of does the opposite to cout.....

C++ Tutorial for Beginners 6 - Strings in C++

Strings are bits of text in C++, or variables that have a special type designed for storing strings. In this tutorial we'll take a look at defining and assigning strings, plus string concatenation.....

C++ Tutorial for Beginners 5 - Variables in C++

One of the most fundamental things that you need to do in a computer program is store bits of data for use or manipulation elsewhere in your program. This is accomplished using variables. Click here....

C++ Tutorial for Beginners 4: Outputting Text with Cout

In C++ we can output (or, in the lingo, print) text using the cout object. We'll take a look at it and what we can do with it in this tutorial. Download Source code as zip....

C++ Tutorial for Beginners 3: Hello World C++

Time to create our first C++ program! We'll get our IDE to generate the a basic program, then we'll start to go over it and look at what's in it and how it works. Don't worry, although even a basic C+....

C++ Tutorial for Beginners 2: Installing Eclipse CDT and a C++ Compiler

In this video we'll look at what you need to install to get started with C++ programming. Everything you need is free! We'll use one of the mostly widely-used industry standard compilers in these vide....

C++ Tutorial for Beginners 1 - Introducing C++

This first video on C++ for complete beginners introduces the C++ programming language. I've designed this course with complete beginners in mind; you only need basic fluency with using computers as a....