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 C++ is next version of C?
This feature looks pretty sweet. This would be great because you wouldn't need getters any more. You could make member variables public; later, if you change your mind, you can turn them into property.
Subham
What is different between malloc and calloc?
The Diffrences are like-- malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments. Secondly, malloc() does not initialize the memory allocated, while calloc() initializes...
Roopali
what is method over-riding and how it is used ? if possible send with code with output or screen photo ?
Method over-riding : it is a technique in which more then one function with same name and same signature( similar type parameter) can present in program. in overriding a subclass method overrides the definition...
Sayyad
0 0
5
What is a class?
Class is User defined data type, its contain data members and member function
Thinagaran
0 0
7

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

Ask a Question

Related Lessons

Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

C and C++ programming with memory level debugging
Understanding C and C++ programming by using memory level debugging. Step 1: Understand the Memory map of C executable Step 2: Start memory level debugging using popular IDE Step 3: Find the memory...

Class and Objects C++
CLASS AND OBJECT IN C++ WITH EXAMPLE FOUNDATION Lets define a variable x of integer type and give it a value 12. How will you do it. You will simply write int x=12; This statement can also be written...

Why we need to learn Programming languages?
Language is medium for communication. If two parties like to communicate or exchange the thoughts they must know a language. Language should be understandable by both the Parties. For example A wants to...

Memory Layout in C++ vis-a-vis Polymorphism and Padding bits.
I know there is no need for the knowledge of memory layout for a normal day-to-day development of C++. However, when someone goes in the bit/byte level of C++, he needs to look for such discussion. To...

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