| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Visual Studio 6 Debugger and the "cout"
Hello Everyone!
I'm a newbie here, but I hope to find answers to my programming problems as well as give an advice sometimes. I am actually a very beginner in C++ programming, however I'm trying to make more and more progress. I use Visual Studio 6.0 and have the following problem with the debugger: When I debug my simple program (Windows Console Application) with the "Step Over" mode, line by line, the debugger won't display ANY of the "cout" messages on the Widows Console screen, but displays the "printf" message without any problems. Of course in normal program execution it correctly displays both "cout" and "printf" messages. The problem occurs only in Debug mode. This forces me to use "printf" instead of "cout" which is inconvenient for me. I pasted the program below. I'll be grateful for any useful suggestions. Thanx in advance! ****************************** #include "stdafx.h" #include "iostream.h" #include "stdio.h" int main(int argc, char* argv[]) { cout << "message" << " first\n"; cout << "message second\n\n\n"; printf ("Hello World!\n"); int a,b; cout << "podaj 1.\n"; a= 2; cout << "podaj 2.\n"; b= 3*a; return 0; } ***************************** |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Visual Studio 6 Debugger and the "cout" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|