# Visual Basic Programming Code Examples

## Visual Basic > Files Directories Drives Code Examples

### Determine if file is a Windows or DOS executable

Code to Implement Sense Drive Command -
Put on the motor. Address of digital control port. Check whether the FDC is ready. Read the status of MSR. Check whether FDC is ready. Beginning of command phase. Input

C Language codings Relational Operators -
A relational operator checks the relationship between two operands. If the relation is true, it returns 1; if the relation is false, it returns value 0. C program to demonstrate working

Print Armstrong Numbers from 1 to 1000 -
Program code print Armstrong Number from 1 to 1000. An Armstrong number is an n-digit base b number such that the sum of its (base b) Digits Raised to the Power n is the number

C++ Find Chromatic Index of Cyclic Graph -
Algorithm finds the "Chromatic Index" of the given cyclic graph. It takes the input of vertex pairs for the given number of edges. Assigns a 'color to edges' without assigning the same

C++ Program to Find Factorial of Number -
First think what is the factorial of a number? How 'mathematically' it can be calculated. If you got this info then it will be very easier to make a C++ code logic to find the "Factorial".

C Programming Uses For Loop Statements -
For Loop in C. First initialization happens and the counter variable gets initialized. Second step the condition is checked, where counter variable is tested for the given condition, if...

Bubble Sorting on int array in C Language -
C program bubble sorting code on int array. Reading in numbers. Sorting them using a bubble sort. Comparing adjacent elements. Exchange elements. Display sorted list.

C++ Coding Topological Sorting in Graphs -
Using an adjacency matrix, displays the times at which the 'different times' at which nodes are visited and left thereby producing a linear ordering of vertices in a graph. And A graph is