Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2006

Tip: Looking for answers? Try searching our database.

cout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Durga - 24 Jun 2006 15:38 GMT
Hi,

 What is lib file of cout & endl funtions?
 I included "iostream" also.
 Still I am getting this error.

ERROR:   C:\MyApp\console.cpp(10): error C2065: 'cout' : undeclared identifier

 
Signature

Thanks & Regards,
Durga.

William DePalo [MVP VC++] - 24 Jun 2006 15:49 GMT
>  What is lib file of cout & endl funtions?
>  I included "iostream" also.
>  Still I am getting this error.
>
> ERROR:   C:\MyApp\console.cpp(10): error C2065: 'cout' : undeclared
> identifier

Well, if you have this line

#include <iostream>

in your source

before you make any reference to the output stream, your problem may be due
to an improper use of the precompiled-header feature.

As a test, I'd turn off the pre-compiled header option and rebuild your
project. If that solves the problem, you can read up on the proper use of
the option and post questions about it here.

Regards,
Will
Bruno van Dooren - 24 Jun 2006 17:03 GMT
>  What is lib file of cout & endl funtions?
>  I included "iostream" also.
>  Still I am getting this error.
>
> ERROR:   C:\MyApp\console.cpp(10): error C2065: 'cout' : undeclared
> identifier

did you do this:

#include <iostream>
using namespace std;

cout is in the std namespace. if you do not tell the compiler to use that
namespace, it will not find cout.
another way is to explicitly resolve the namespace by using std::cout in
your code.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.