C++: Programming in Linux – Hello World

January 12, 2010

C++ is one of the most widely used programming languages today. I’m not going to talk about it in general but skip to the first example, which would be the Hello World program.
Before we start you should know that Ubuntu has an included C++ compiler called G++, so you won’t be needing a C++ IDE. I’ll be writing the programs here on GEdit (plain text editor) and compile it with G++. Also Ubuntu has an integrated debugger called GDB. Those two work on the command line, don’t be scared it isn’t complicated.
Read the rest of this entry »


QBasic: Installing on Linux and writing your first program

December 9, 2009

Basic is a fairly easy programming language to learn for beginners, that’s why I’m starting with that particular language and will work my way up the complexity scale.
QBasic is an IDE (Integrated development environment) and an interpreter for the BASIC programming language. It was developed by Microsoft more than 20 years ago. And being developed by MS it runs only on Windows, but thanks to emulators, namely Wine, it’s possible to run in it under Linux also. All you need to do to install Wine emulator on your Linux box is to write into the terminal this line:

sudo apt-get install wine

Read the rest of this entry »

Solving problems – the problem resolution process

December 8, 2009

Before I start with the more technical stuff about programming I’d like to write about how to solve problems with a predefined algorithm (an algorithm is a set of instructions that are executed the same way as they are written to solve a problem). The step of solving a problem, the problem solving algorithm is:

1 – Determine the Purpose
2 – What are the Required Data
3 – Determine the Logic
4 – Create the Computer Program
5 – Test and Re-test

Read the rest of this entry »