Visual Basic Programming Code Examples
Visual Basic > Other Code Examples
Enable and disable Excel's macro virus protection
Example Sort an Array in decending order -
C Programming example code to sort an array in decending order. Enter number of data (maximum 100). Enter data (in integer). Your array in decending order is as follows:
C++ Find Closest Pair of Points in an Array -
Sort array of points according to X coordinate and Y coordinate. Find the distance between two points. And return the 'smallest distance' between 2 points. Find the 'distance' beween
C++ Language Samples Separate Chaining -
Internal method to test if a positive number is prime. Not an efficient algorithm and Internal method to return a 'prime number' at least as large as n. Assumes "n > 0". Insert item x into
Finds the Frequency of the Word in String -
Take any Sentence as input and store it in the array 'string[]'. If the input string has 't', 'h', 'e' and ' ' Consecutively, then store that values in the variables 't, h, e & space' respectively. Use
Count Number of non leaf nodes of a tree -
C create a new node with the data from the user. Check for root node and then create it. Search for the appropriate position to insert the new node. Display and count the sum of
Input Number & Check it is Palindrome or -
C program input number and check number is Palindrome or not using Loop. Palindrome number is such number which when reversed is equal to the original number. 121, 12321,...
Code Passing Array to Function using Call -
When we pass the address of an array while calling a function then this is called function call by reference. When we pass an address as an argument, the function declaration...
C++ Language Code to Merge Two Arrays -
Program ask to the user to enter array 1 and 2 size, then ask to enter array 1 and 2 elements, to "merge or add" to form new array, display the result of the added array or merged array