Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Console output

Status
Not open for further replies.

globos

Programmer
Joined
Nov 8, 2000
Messages
260
Location
FR
Hi all,

How can I see what is written on the standard output(std::cout) with VC++ 6.0?

Thanks

--
Globos
 
Code:
#include <iostream>
using namespace std;
cout << &quot;Open your eyes and read this&quot; << endl;

If there is some other problem, be more specific

-pete
 
Hi palbano,

Writing in cout is not my problem, I just want to see, in VC++'s GUI what is written in cout.
Is there a console tab while executing a program or something like that?
I could not manage to find it.

Thanks

--
Globos
 
>> I just want to see, in VC++'s GUI what is written in cout.

cout goes to the console, not to VC's IDE so you look at the console generated when your applciation executes to see the output.

-pete
 
There is not any generated console when a launch a test program like this :

#include <iostream>
using namespace std;
int main()
{
cout << &quot;Open your eyes and read this&quot; << endl;
return 0;
}

There is certainly an hidden option to check in VC++, or something I do wrong, this is very irritating.


--
Globos
 
Globos, so your saying that after you compile your application into it’s .exe (let’s say foo.exe). Then you open a console window and execute the application C:\folder\> foo you don’t see the output in the console window?

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top