Visual Basic Programming Code Examples
Visual Basic > Files Directories Drives Code Examples
Determine if a File is open
Prints Days in Month Logical OR Operator -
The above logic is simple & easy to code. But it's lengthy and not optimal to implement. In the above solution we are performing same task for multiple conditions i.e. print 31 days
C++ Additions Subtractions Multiplication -
Perform addition, subtraction, multiplication and division of any two numbers in 'C++', you have to enter the 'two number' and enter the operator to perform the particular operation
C Performing Comb Sort Array of Integers -
C Program to performs Comb sort on array of integers. "Comb Sort" is a comparison sorting algorithm. This sort is 'Exchange sort', similar to 'Bubble Sort'. Function to find the new gap
Get Total Number of Notes in an Amount -
C program to input amount from user & print minimum number of notes (Rs. 500, 100, 50, 20, 10, 5, 2, 1) required for the amount. Input amount from user. Store it in a variable 'amt'.
Sizeof Operator & Coma Operator In C++ -
In C++ Language 'sizeof' operator returns the size of the variable or type. Here 'size' means how many bytes of memory is being used by a variable or type. Coma "," Operator is used
Copying an Array involves index by index -
C program code shall help you learn one of basics of arrays. Copying an array involves index-by-index copying. For this to work we shall know the length of array in advance,...
2d example insertion sort [linked list] in C -
C program code to 2d example insertion sort [linked list]. Insert a node directly at the right place in the linked list. Insert some numbers into the linked list. Print the list. Free the list
Simple Queue Programs in C++ Language -
The "queue? size?" function would return the length of the line, and the ?empty? function would return true only if there was nothing in the line. "Simple Queue" C++ Example, array