 Visual Basic Programming Code Examples

Visual Basic > Applications VBA Code Examples

Programs to Traverse the Tree Recursively - C Coding, using recursion, performs traversal operation across the nodes in a tree. The tree we have used is the "Binary Search Tree". The user "Generates a Tree" by inserting integers.

Find the Maximum Size Clique in a Graph - This is a C++ Program to find the 'cliques' of size k in a a graph. An "Undirected Graph" is formed by a finite set of vertices and a set of unordered pairs of vertices, which are called

Every Possible Combination of two Strings - Program display 'every possible combination' of two words from the given 2 string without displaying "repeated combinations". Convert string in 2D array. Make the first string words

Program Code Calculates the Value of nCr - This C Program to Calculates the value of nCr. The algorithm used in this program is nCr = n! /((n-r)!r!) and We need to Find all the Possible combination of the value n&r. A combination

Read integers into an array and Reversing - We have declared one pointer variable and one array. Address of first element of array is stored inside pointer variable. Accept Size of an Array. Now we have accepted element...

C++ Sample Programs Reversing Number - To reverse a number in C++, then you have to ask to the user to enter a number. Now, start reversing that number to find its reverse and then display its reverse on the screen. Make a

Program Finds Sum of Digits of a Number - 'Sum of digits' means add all the digits of any number, we take any number like 358. Its sum of all digit is '3+5+8=16'. Using given code we can easily write c++ program. Enters any num

C Output of a Program is Input of Another - Pipe the output of program to the input of another. Duplicate stdin and stdout so we can restore them later. Make the write end of the pipe stdout. Run the program. Its output will