Re: [Dev-C++] iostream "without" cout
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elizabeth B. <sog...@ya...> - 2002-09-09 16:56:00
|
Carlos Garc=EDa del Monte <cg...@wo...> writes:
> I instaled Dev 4.9.5.0 executable with MinGW 2.0.0-2, and in a
> project with seven files, all of them include <iostream>, in one of
> them it says cout and endl undeclared, and iostream is included
> (?). Directories are well inserted. If I change <iostream> with
> <iostream.h> then it works (I add all include directories, the
> backward too). What can cause that?
Possibly by not having "using namespace std;" declared prior
to referencing them. Does adding "std::" before them make a
difference, as in:
std::cout << "test" ;
-e
|