Search code examples
c++dosiostream

Iostream in Borland C++ compiler


In my old computer (nearly 15years), I use MsDos and Borland C++ compiler. The problem is,

#include <iostream.h>

works but

#include <iostream>
using namespace std

This doesn't works here.

Is there any way to use modern IDE on MsDos


Solution

  • Borland is so old that it was made before the C++ Standard Library existed.

    At that time the effective standard for C++ was the ARM, the Annotated Reference Manual by Bjarne Stroustrup and Margaret Ellis, and it was named <iostream.h>.

    With the first standardisation in 1998 <iostream.h> was dropped, and replaced with just <iostream>.

    I don't know what to say. Just use <iostream.h>, or a newer compiler.