Author Topic: console output is only "1 \n Press ENTER the continue."  (Read 3309 times)

hallo

  • Guest
console output is only "1 \n Press ENTER the continue."
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: console output is only "1 \n Press ENTER the continue."
« Reply #1 on: July 19, 2007, 07:36:48 pm »
   - Do not create any files
Where is that option?! -> Try disabling it.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

hallo

  • Guest
Re: console output is only "1 \n Press ENTER the continue."
« Reply #2 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
« Last Edit: July 20, 2007, 03:58:18 pm by hallo »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: console output is only "1 \n Press ENTER the continue."
« Reply #3 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."