C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 15th, 2005, 12:06 PM
rosol11 rosol11 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 rosol11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 46 sec
Reputation Power: 0
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;
}
*****************************

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Visual Studio 6 Debugger and the "cout"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT