answersLogoWhite

0

Why you use dosh in c plus plus?

User Avatar

Anonymous

10y ago
Updated: 8/20/2019

In short, you don't use it at all, not unless you're specifically writing code for standalone DOS (disk operating system) that are well over 20 years old now. The <dos.h> header is actually a C library header rather than a C++ library header, but it is not actually part of the standard C specification. It is specifically intended for standalone DOS systems, such as MS-DOS, PC-DOS, IBM-DOS and so on. You cannot use it on Windows 95 or later operating systems since all the functionality previously provided by DOS is now provided by Windows itself, so you must include the <windows.h> header instead. And since it is DOS only, it is obviously not portable. You can use it on Windows 3 and earlier systems since Windows 3 is not an operating system in its own right and is entirely reliant upon an underlying DOS system.

User Avatar

Wiki User

10y ago

What else can I help you with?