Code::Blocks Forums

User forums => Help => Topic started by: hallo on July 19, 2007, 06:47:07 pm

Title: console output is only "1 \n Press ENTER the continue."
Post by: hallo on July 19, 2007, 06:47:07 pm
Hello!

I am taking my very first steps in prgramming with c++. I am lerning with a book in witch c++ is explained by using code::blocks, the Cisual C++ Toolkit2003 and Microsoft Platform SDK.
My problem is if I type in any code the generated console prgramm only shows the following:

1
Press ENTER the continue.

I dont think the problem lies within the code.
Here are the setting I made according to the book:
- selected compiler: Microsoft Visual C++ Toolkit 2003
- settings > compiler:
   - Enable warnigs level 3
   - Maximize Speed
   - Enable C++ Exception Handing
   - _cdecl calling convention
   - Single-threaded Runtime Library
- console Application
   - Do not create any files
I am using Windows XP SP2
Here is an example code I typed in:
#include <iostream>
using namespace std;
int main(void)
{
    cout << "Hallo";


Thank you very much for your help.
Greetings
Dominik
Title: Re: console output is only "1 \n Press ENTER the continue."
Post by: MortenMacFly on July 19, 2007, 07:36:48 pm
   - Do not create any files
Where is that option?! -> Try disabling it.
With regards, Morten.
Title: Re: console output is only "1 \n Press ENTER the continue."
Post by: hallo on July 20, 2007, 03:28:57 pm
Thank you for your awnser Morten, but it doesn't work.
Now it allways shows
"Hello world!

Press ENTER to continue."
regardless of the code I type in.
Have a nice weekend
Dominik
Title: Re: console output is only "1 \n Press ENTER the continue."
Post by: thomas on July 20, 2007, 08:05:57 pm
Maybe you want to rebuild before running the program. This does not happen magically, you really have to do it, too.