void function example

March 11th, 2009 by producer

I am experimenting with this small program:

// void function example
#include
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?

March 5th, 2009 by producer

what is the continue statement?

Compiling a C++ program under Ubuntu

November 11th, 2008 by producer

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:
./myprog2

Templates in C++

September 13th, 2008 by producer

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

arrow operator

September 3rd, 2008 by producer

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

September 3rd, 2008 by producer

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

September 3rd, 2008 by producer

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

August 22nd, 2008 by producer

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

variables

August 22nd, 2008 by producer

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

August 22nd, 2008 by producer

Currently, I am trying to learn the basics of C++. I compile the programs with Dev-C++ 4.9.9.2. 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.