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


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



Relevant Pages

  • Re: man -t odd page size
    ... > ISO compliant document whereas a small minority benefits from having non ... theory shouldn't the FreeBSD lists, docs and code all be in Chinese? ... A4 isn't a DIN standard anymore, ...
    (freebsd-questions)
  • Re: Pixel policy
    ... Or Class Anything compliant? ... If the class is not clearly mentioned the ISO ... According to the ISO standard all LCD screens are sold as Class 1 ... screens unless it is stated clearly and prominently that they are not. ...
    (uk.tech.digital-tv)
  • Re: Why are Digital camera images made wrong?
    ... proportion as usually not as pleasing as the metric paper ratio - it's ... It is an ISO size, but does not divide neatly by 10. ... The international paper size standard, ISO 216, is based on the German DIN 476 standard for paper sizes. ... Successive paper sizes in the series A1, A2, A3, etc., are defined by halving the preceding paper size parallel to its shorter side. ...
    (alt.photography)
  • Re: UTF-8 Erkennung
    ... ISO 8859-1 und ISO-8859-1? ... Charset-Bezeichner dürfen nämlich keine Leerzeichen enthalten. ... Alias: ISO-8859-1 ... Diese Belegung der Steuerzeichen nach ECMA-48, insbesondere die Control-Sets C0 und C1, setzte sich aber zumindest im Computerbereich als Standard tatsächlich durch. ...
    (de.comp.lang.java)
  • Re: Cobol books & experiences
    ... adopted by ISO) ... For the '02 COBOL Standard, ... It went thru the ISO process and ANSI then adopted it. ... Just as ANSI can adopt the current ISO Standard, so can "DIN" (the German ...
    (comp.lang.cobol)