Two different C++ types

Karl F. Larsen klarsen1 at gmail.com
Sat Feb 13 14:04:43 UTC 2010


J wrote:
> On Thu, Feb 11, 2010 at 15:46, Karl F. Larsen <klarsen1 at gmail.com> wrote:
>>        Just interesting. In the 9.04 Ubuntu g++ they used the
>> Standard C++ which has #include <iostream.h>.
>>
>>        In Lucid 10.04 Ubuntu g++ is ANCI/ISO Standard C++ which has
>> two lines:
>>
>> #include <iostream>
>> using namespace std;
>>
>> I tried some of my old code and discovered I had to change
>> headers. The iostream.h is not in the Lucid g++.
> 
> None of them are in any g++... g++ is just a gcc extention for
> compiling C++ code as opposed to C...
> 
> The difference is that your older code is calling a deprecated C
> library (iostream.h) while the newer ISO standardized C++ uses newer
> headers (iostream).
> 
> Here's a bit of an explanation of the difference:
> 
> http://en.wikipedia.org/wiki/C%2B%2B_Standard_Library
> 
> Cheers,
> 
> Jeff, W4KDH
> 
> 
	Hi Jeff my book just says there are two types. The URL you 
provide says the one I want is old and it is depreciated.

	Guess I will go back and change some of my older applications 
to the newer better stuff....hi


73 Karl



-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
         Key ID = 3951B48D





More information about the ubuntu-users mailing list