Archive for the ‘Uncategorized’ Category

void function example

Wednesday, March 11th, 2009

I am experimenting with this small program:

// void function example
using namespace std;

void printmessage ()
cout << "This is a function.\n";

int main ()
printmessage ();
return 0;

I want to learn more about void.

what is the continue statement?

Thursday, March 5th, 2009

what is the continue statement?

Compiling a C++ program under Ubuntu

Tuesday, November 11th, 2008

I just tried an example from the C++ tutorial.

Compiling and running a simple C++ program under Ubuntu
Compiling and running a simple C++ program under Ubuntu

I am using Ubuntu 8.10 (Intrepid Ibex).

I had to compile the program using the command:
g++ myprogram2.cpp -o myprog2
And then the program was executed with the following line:

Templates in C++

Saturday, September 13th, 2008

I have just read three different sources about templates in C++. First, I read in, then I took a look into the Wikipedia. But I have problems to understand the details. So I read the remarks at

arrow operator

Wednesday, September 3rd, 2008

I just learned something about the arrow operator.  But I don’t know yet how to handle this feature of C++.  But I am continue to read tutorials about C++ so that I hopefully will know the basics.

keep the window open

Wednesday, September 3rd, 2008

I just learned how to keep the window open.  This was a problem for me a few weeks ago.  But I solved this problem by using the command prompt.  But now I know this different way.

Bloodshed Dev is good for beginners

Wednesday, September 3rd, 2008

I just read a few lines in this C++ tutorial. They mention the program Bloodshed Dev which is good for beginners. I installed this program a few weeks ago. It is good to test C++ example programs. I am a beginner. And this compiler provides the help that I am needing.

variables and constants

Friday, August 22nd, 2008

What is the difference between variables and constants?  And what can you do with them?


Friday, August 22nd, 2008

I have just tried out the example program concerning variables.  First I stored it, then I compiled it. And a then I executed it with the command prompt.

hello world

Friday, August 22nd, 2008

Currently, I am trying to learn the basics of C++. I compile the programs with Dev-C++ For example, I just compiled the program hello world. More information about hello world can be found in the wiki books.

It is just a simple program. I used the command prompt under Windows XP. First I had to navigate to the folder in which the previously compiled hello.exe was located. This is done by the command “cd [name of the folder]“. And then I had to type in just “hello” to execute the program. I think this is one of the biggest problems to do the first steps. Just to run a simple program.