Something Very Weird is Happening

First of all, I would like to, before hand, thank anyone who is willing to help, as it means a lot.

#include <iostream>
using namespace std;

int main()
    double propval;

    cout << "What is the actual value of the property?";
    cin >> propval;


I am getting a blank cmd prmt...

Now I know this code is correct, so I doubt the problem can be resolved withing the code itself, however, that's just my prediction. I am hoping someone else has had this problem..

Let me start off by saying, a simple cout <<"asdsdasda"; runs and compiles fine. It's when I add a variable in anyway, whether it be using a variable in cout, or attempting to cin a variable, I get a blank program (nothing is showing).

I am using codeblocks with GNU GCC Compiler.

Again, thank you very much for any input, I really do appreciate you taking your time to help me out.
Try also outputting std::endl or std::flush - the text may have only gone to an internal buffer and might not have been displayed yet. Modern systems however should flush the output buffers when you try to take input.
> I am using codeblocks with GNU GCC Compiler.

This looks like a compiler/library bug.

If you are using an old version of GCC, consider upgrading to something more recent.
Topic archived. No new replies allowed.