# Visual Basic Programming Code Examples

## Visual Basic > API and Miscellaneous Code Examples

### Opening, Printing and Emailing documents-files using Shell API

Using Insertion Sort Technique in The C++ -
To sort an array using insertion sort, enter the array size and then array elements in random order. Start Sorting the Elements of the array in Ascending Order using insertion sort as like

C++ Implement Dijkstra's Algorithm using -
This C++ program code displays the Djikstra's Algorithm of finding shortest paths from one node to others using the concept of a priority queue. A "Priority Queue" is an abstract data

Perform Unique Factorization of Numbers -
Program finds the Unique paritions of a given integer such that addition of a partition result an integer. A positive integer n, "generate" all possible unique ways to represent n as sum of

Program Finds Sum of First and Last Digit -
C Language Program to input a number and find sum of first and last digit of the number using for loop. Input a number. Find last digit. Find total number of digits - 1. Find first digit.

Display decimal equivalent of input binary -
C Programming language example to display decimal equivalent of a input binary number. What will be the length of input no.? Don't exceed input from your input limit or 5 digits

Implementation for Deterministic Skip list -
Finding the smallest item in the tree. Return smallest item or 'INFINITY' if empty. Find the largest item in the tree. "Return the Largest" item or INFINITY if empty. Find item x in the

C Find the Sum of First n Natural Numbers -
We will see 2 C programs to calculate the sum of natural numbers. In the first C program we are using For Loop for find the sum and in the second program we are doing the same using

Calculate Display the Grade of the Student -
To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade