None of my Console Out commands work

I'm new to C++ so I don't know much yet, but I know for a fact that something is wrong. I if I type in a Cout command then the moment I build and run the program it immediately shuts down, but my IDE(Codeblocks) acts as if I turned off the program and everything went perfectly. I've found that if I put a Cin command after the program it stills works, it just won't load the final line of text no matter what I do. In a moment of frustration, I even copied and pasted a basic "Hello World" program only to find that that didn't work either. I don't know if it's me or my compiler or what but something is seriously wrong. Also, I apologize if it turns out that this is super simple and I'm just being dumb, I looked around online but couldn't find anything.
Hello TNBa,

In addition to reading lastchance's link it is best to post the full code that is giving you a problem. This will help determine if it is your code or Code::Blocks that is the problem.

Otherwise it is back and forth guessing at the problem.

Before you get to posting any code:

PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code.

Along with the proper indenting it makes it easier to read your code and also easier to respond to your post.

http://www.cplusplus.com/articles/jEywvCM9/
http://www.cplusplus.com/articles/z13hAqkS/

Hint: You can edit your post, highlight your code and press the <> formatting button. This will not automatically indent your code. That part is up to you.

You can use the preview button at the bottom to see how it looks.

I found the second link to be the most help.



Andy
Topic archived. No new replies allowed.