Re: Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc.
From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 05/30/04
- Next message: Tom: "Textual form of ClassView?"
- Previous message: as mellow as a horse: "Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- In reply to: as mellow as a horse: "Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- Next in thread: Carl Daniel [VC++ MVP]: "Re: Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 30 May 2004 15:44:05 -0400
"as mellow as a horse" <mail@MICKmoss42.fslife.co.uk> wrote in message
news:c9d549$2pg$1@newsg1.svr.pol.co.uk...
> I'm not new to C++, but it has been a while, and I'm defintely new to dot
> net.
Roger.
> So to get back into the swing of things, I tried to create the ubiqitous
> "hello world" program using a console application. Most of the C++
> programming I've ever done has been in Borland products (mostly C++
Builder)
> and all I ever needed to do a "hello world" was include "iostream.h".
The problem here is not with .Net per se but with the changes in ISO
standard C++. VS' compiler, per the standard, no longer supports
<iostream.h>. You'll need to use <iostream> (no extension) instead.
> How do I include "iostream.h" when dot net can't/won't find it,
> and should I be doing so anyway
Nope.
> i.e. is it the done thing now to use namespaces
> everywhere and thus only use iostream?
Many people use
using namespace std;
in source (not in header!!!!)
others will fully qualify names, e.g,
std::cout
You probably want to check a good text like ones from Herb Sutter for the
gory details, stylistic and otherwise.
Regards,
Will
- Next message: Tom: "Textual form of ClassView?"
- Previous message: as mellow as a horse: "Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- In reply to: as mellow as a horse: "Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- Next in thread: Carl Daniel [VC++ MVP]: "Re: Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|