UrbanPro

Learn C++ Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

how to use dos.h

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

First include dos.h header file then use their function. Before use function, you must have knowledge of dos functions and their charactistics
Comments

dos.h in c: dos.h header file of c language contains functions for handling interrupts, producing sound, date and time functions etc. It is borderland specific and works in turbo c compiler.
Comments

Java Professional with 11+ Yrs of experience

The header file dos.h was created to facilitate calls to System API and the OS, so that programmers could use system calls such as delay (int) or sleep (int) in their programs. But it was written at a time when DOS was the primary and Microsoft's only operating system! Unlike in the late 90s when...
read more
The header file dos.h was created to facilitate calls to System API and the OS, so that programmers could use system calls such as delay (int) or sleep (int) in their programs. But it was written at a time when DOS was the primary and Microsoft's only operating system! Unlike in the late 90s when it served as the shell on top of which early versions of Windows ran. But now, OSs like Windows Vista, 7, 8, 10 etc. are pure 32/64 bit systems and CMD is just an interaction utility that's provided to the user so that they can work on Command Line! Now you've got to realize that when Dev C++ was being developed, DOS was perishing and system calls could only be made on the OS on which the compiler is running, right? And that's when the header file windows.h was written to aid windows users and unix.h for unix users and so on. So, now there are two things you can do: You can copy the header file dos.h from an older compiler like TCC or your Turbo C++'s Lib to the Cygwin library that, I think Dev C++ uses. Although it may not work (compatibility/Security issues that modern compilers have); or Check the online documentation for windows.h and find the equivalent functions, and use them in your program, good luck read less
Comments

use #include preprocessor at top of your program to include this header file into ur program. Thus all functions of this header file will act as part of your program and then to use any of its function you can directly invoke that function instead of writing dos. command repeatedly.
Comments

Computer Programmer

You must work with torbo c++
Comments

Creative Minds Trainer

Dos.h is one among the header files . It contains functions for handling interrupts, producing sound, date and time functions etc. It is a Borland specific and works in turbo c compiler.
Comments

Result oriented teaching professional

DOS.h is a header file used to handle DOS commands (DISK Operating system) in C/C++ programming environment.
Comments

Computer Software Professor

dos.h is used for system related functions like sleep, delay, direcet reading writing fat..... use #include dos.h
Comments

Computer Professional

dos.h is a header file which has functions that cause interrupt to the computer like delay(),time() etc.
Comments

International Corporate Trainer For dotnet Core ,Angular 2 ,C ,C++ and LPT Marathi for RBI Banking

dos.h is used for date, time and system memory related functions
Comments

View 15 more Answers

Related Questions

Is it possible to write big safe programs in C++?
yes. C++ is generally used to write system software. For example windows operating system are writeen in C++. Most of the operating system, device driver and antivirus programs are written by using C++.
Sapna
0 0
6
What are the advantages of OOPL?
Object-Oriented Programming has the following advantages over conventional approaches: 1: OOP provides a clear modular structure for programs which makes it good for defining abstract datatypes where...
Mohan
3 0
6
Is there any person who can teach me C++ without Money Fees?
Good question :) Free training is available on various sites online. But, if you would want to learn from an expert directly, there's a very slim chance that you might find some one who will teach for...
Kishan
what is copy constructor?
The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to: Initialize one object...
Hiteshwar

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Working with C/C++ applications
Inorder to learn C and C++ programming languages one can work with various editors available.To name a few are the most popular one is turbo c++, DEV C++, Eclipse, NetBeans. Here are the screen shots...

Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When...

Importance Of Function Prototype In C
Function prototype tells compiler about number of parameters function takes, data-types of parameters and return type of function. By using this information, compiler cross checks function parameters and...

Macro v/s Inline Function
Disadvantages of Macro compared to functions: Works on text substituiton mechanism by the preprocessor unlike normal functions where assembly-language Call and Return are used. Preprocessor macros...

Tress And Its Traversal
Depth First Traversals:(a) Inorder (Left, Root, Right) : 4 2 5 1 3(b) Preorder (Root, Left, Right) : 1 2 4 5 3(c) Postorder (Left, Right, Root) : 4 5 2 3 1 Trees are one of the data structures like...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C++ Language Classes?

The best tutors for C++ Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C++ Language with the Best Tutors

The best Tutors for C++ Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more