On Feb 3, 2008 9:19 PM, tltstevenson5175 <[EMAIL PROTECTED]> wrote:

> I am currently taking C++ online. I have tried using the MinGW and the
> Dev-C++ compilers and I am still getting error messages. I have even
> had classmates attempt to help me fix the problem and after going thru
> everything step by step, we still get the same error messages over and
> over again.
>
> When I try to use the Dev-C++ compiler, I get the error message telling
> me that <iostream.h> deprecated and to try <iostream> when I switch to
> just <iostream> it then tells me that I need to declare cout.

Yep, it's just <iostream>

And for cout, you have two choices:

put

using namespace std;

just before main()

Or use std::cout, std::cin

(you should look up namespaces so you have an idea what they are).

Something tells me also you are using very outdated materials online.
Dev-C++ is a fairly standards compliant compiler (using MinGW
underneath, which is one of the flavors of the GNU C & C++ compiler
family), so it's doing the right thing. You should ditch your online
class and use one of the many references listed under
http://tech.groups.yahoo.com/group/c-prog/links/Books_000986587838/

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to