News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

console output is only "1 \n Press ENTER the continue."

Started by hallo, July 19, 2007, 06:47:07 PM

Previous topic - Next topic

hallo

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

MortenMacFly

Quote from: hallo on July 19, 2007, 06:47:07 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

hallo

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

thomas

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."