Showing posts with label set. Show all posts
Showing posts with label set. Show all posts

What is AutoRun and AutoPlay ? How to Set it ?

AutoRun or AutoPlay is a feature of Microsoft Windows operating Systems which causes a certain file to be opened automatically when a Compact disc is inserted or a thumb drive is connected. Windows provide us some AutoPlay options to choose from. It can be chosen in the 'properties' of the CD Drive. You might have noticed that when we insert the CDs of Softwares or some movies some application will be launched automatically. In most cases, it may be one with a menu or a movie player. Such AutRuns are designed by the software vendors. Similarly, we can also design an autorun for a CD we burn or even for a pen drive.

C Program to Display and Set System Time and Date Using 8086 Interrupts

This is a C Program to Display and Set System Time and Date Using 8086 Interrupts. Interrupt number 21 (in hexadecimal) is used to:
C program to get system time and date and also to set it using 8086 interrupt INT 21 interrupt 0x21 21h int86() function call interrupts in C program
Output of c Program to get and set system time and date 

  • Get System time
  • Set System time
  • Get System Date
  • Set System Date
To Get system date:
- Call interrupt 0x21 (hexadecimal) 
- AH (higher byte of accumulator) should be made equal to 2A (hex) before calling interrupt
Output:

Algorithm, C and C++ Programs to find Closure From Functional Dependencies

In this post we will see how to find closure of an attribute or a set of attributes. Before learning how to get closure, we should first know what is a closure. Closure of a given set C is the set of attributes that are functionally determined by the set C under the set of functional dependencies F. There can be closure for any set. Every attribute in the set whose closure is to be found out, will be a member of its closure set C+ also. Consider an example: