I actually just started trying the C++ tutorials on the main site last night, and I'm now completely and utterly engrossed. I don't know why I suddenly decided I wanted to learn a programming language, but anyway, that's not important.

I've hit a snag somewhere, well, it's probably something really simple that I'm too inexperienced to notice. I'm only on lesson 3, loops. But when I try the codes in this lesson, they don't work. I type them, letter for letter, compile and then run, and don't get the expected results, but just 0s trailing down the screen. I mess around a bit, in case I made a mistake, and that doesn't help. I don't know anyone else who knows much about C++, the only person I do know is about 6 miles away and doesn't have a house phone.

I'm actually in the dark with the compiler, too. Nowhere can I find any information on how to use it, so I could be doing something wrong there, too.

Anyway, although you can find the code in the lesson 3 tutorial, I'll just add what I've got down. Maybe someone could spot where I've gone wrong.

Code:
#include <iostream>

using namespace std;

int main()
{
    int x;
    
    x = 0;
    do {
        cout<<"Good morning maddam!\n";
    } while ( x != 0 );
    cin.get();
}
According to the tutorial the text should be printed more than once, but as I said, all I get is lots of 0s. If anyone can help, I'd be very greatful.