Link to home
Start Free TrialLog in
Avatar of sita
sita

asked on

C++ cout object

In every C++ program for displaying any value on console
we are using 'cout' object.but we are not creating this object  any where in our program.where this object has been declared?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

For example, in the <iostream> that comes with VC 6, it is declared like

extern _CRTIMP ostream cout;

This declares it as an ostream object that has been externally defined.  That is, this says that the program being compiled has not and will not define cout, but cout is defined in some library that will be linked into it.
Dear sita

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "nietod"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: https://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
Force accepted

** Mindphaser - Community Support Moderator **