What compiler are you using?
GNU GCC Compiler with codeblocks.. I'm going to try microsoft visual c++, as I feel it's something with codeblocks messing up, unless anyone can suggest something different
Hmm, I thought using std::cin would flush std::cout automatically but maybe that depends on the implementation.
Try manually flushing std::cout before using std::cin.
cout << "What is the actual value of the property?\n" << flush;
Or you can use the more commonly used std::endl that will both output a newline and flush.
cout << "What is the actual value of the property?" << endl;
Last edited on