Re: what is the difference?

Tech-Archive recommends: Speed Up your PC by fixing your registry



> what is the difference between these two cases?

If this is VC 6.0, the understand that it comes with 2 C++ libraries, an old
legacy library and one that is close to the ISO C++ standard. Use the old if
you have large amounts of legacy code to support. Otherwise prefer the new.
_DO NOT_ mix the C++ header files.

> Case 1:
> #include <iostream.h>

You are using the old legacy C++ library. Non-standard headers

> Case 2:
> #include <iostream>
> using namespace std;

You are using the new C++ library. Standard headers.

Stephen Howe


.



Relevant Pages

  • Re: large file support && ! large file support
    ... that is a truly different interface at the ABI level than ... an extra legacy library that provides the ABI for older programs that expect ... toolchain to compile programs in the legacy architecture (for example the ... libraries like libc might well have to be coded to understand which it ...
    (comp.unix.programmer)
  • Re: large file support && ! large file support
    ... I certainly do not have that legacy. ... |> for programs w/o source code available). ... My solution as I would have done POSIX LFS, or my solution for my libraries? ...
    (comp.unix.programmer)
  • Mysterious sigbus received from sscanf()
    ... I'm relatively new to HP/UX and have been assigned to port a legacy ... libraries, but recently had to revert back to archives and a ... So I converted it to link statically, got over the link order hurdles, ...
    (comp.sys.hp.hpux)
  • Re: C89, size_t, and long
    ... libraries which have useful stuff). ... or for some other obscure reasons. ... the standard headers that it is almost as universal as a keyword. ... First, there are identifiers that are reserved for future use, ...
    (comp.lang.c)
  • Re: C89, size_t, and long
    ... libraries which have useful stuff). ... but you can hardly blame the consequences on the Standard headers. ... First, there are identifiers that are reserved for future use, ... and if you use `strdup' or `streptomycin' ...
    (comp.lang.c)