UNIX & GNU/Linux - gcc - Option -I for adding includes to the compilation

During the compilation step, we can add includes that will be added to the .o generated.

For that, we use the -I option (this is an uppercase "i", standing for "include") with the path to the includes we want to add.

Eclipse - Debugger - An easy example

Using the debugger is just essantial in a huge complex project.

But even for a tiny program, it is also useful.

For this Eclipse debugguer tutorial we are going to test it with the C++ programming language.

Python 3 - Data types - Using a dictionary

A dictionary is useful when you want to associate a key with a value.

A key is for example the first name of a person and the value his last name.
But this is the same for a car and its color.

Python 3 - Data types - Using a set

A set is a container that enables a way to retrieve unique data inside this container.

It means that if you want to be sure that only one occurrence is present in a container, you have to choose the set one.

For the form, we have to use the curly brackets to declare a set.

Python 3 - Data types - Using a tuple

A tuple is like a list but without possibility to modify it.

We can see a tuple like something declared once to be sure data inside won't be modified in the future.

Python 3 - Data types - Using a list

The list data type is like a container.

So we can manage it like an array in other programming languages.

In this tutorial of the Python 3 data type list, we are going to play with all methods of the list.

Python 3 - General programming - Statements

In Python 3 we cannot increment a variable directly with "++" before or after this variable.

We have to add + 1 on the variable to increment it.
That's a bit annoying but life is life.

In this tutorial we are going to see examples of the Python 3 statements.

C++ - OpenGL - Hello World!

After installing the OpenGL libraries on your system, you would definitely want to display something on the screen.

You are right!

So let's see this with an Hello World! OpenGL 2.1 tutorial.

C++ - OpenGL - Installation

For this first OpenGL tutorial, we are going to see how to install OpenGL on GNU/Linux and Windows operating system.

UNIX & GNU/Linux - System calls - Using wait()

The wait() syscall is often used with the fork() syscall.

Indeed, with the wait() syscall we can be sure that the child will be executed before the parent process.
In a trivial vision, this is like mutexes for threads.

Pages

Subscribe to BadproG.com RSS