www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/19/10:04:09

Message-ID: <33D0C924.27DD@lr.net>
Date: Sat, 19 Jul 1997 10:03:16 -0400
From: Isaac Waldron <waldroni AT lr DOT net>
Reply-To: waldroni AT lr DOT net
Organization: The Computer Nerd
MIME-Version: 1.0
To: Wald0 <waldo_rx AT hotmail DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: problems including iostream.h
References: <33C99B62 DOT 7A8E142F AT hotmail DOT com>

Wald0 wrote:
> 
> I am having trouble compiling programs that use the iostream.h file. I
> read some information files on it, but they didn't say anything about
> compiling using the iostream.h file. If u can help me out, drop me a
> line.
> 
> Wald0

try using code like this:

#include <iostream.h>

void main()
{
	cout << "Hello World.";
}

Also, since iostream.h is a C++ only file, make sure your filename has a
.cpp extension.

-- 
-Begin Signature-
Isaac Waldron <waldroni AT lr DOT net> N1YZI
http://www.geocities.com/SiliconValley/Lakes/5703/home.html
-End Signature-

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019