Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Visual Basic Programming Code Examples

Visual Basic > Applications VBA Code Examples

Separate File name and File Path from String (Fun with Split & Join)





C Code to find largest element of an Array - Function to find the largest element in the array. In the following program we are initializing a variable (maxelement) with the first element of given array and then we are

C Code Merge & Sort Elements of 2 Arrays - We have to sort only when left<right because when left=right it is anyhow sorted. Sort the left part. Sort the right part. Merge the two sorted parts. Merge functions merges the...

C++ Program to Implement Ternary Tree - C++ program implements the ternary tree, is a tree data structure in which each node has at most three "child nodes", distinguished as "left", "mid" and "right". Nodes with children

Chess for two humans C Graphic Program - Draw vertical lines of the chess board Draw the horizontal lines of the chess. Knight's moves are not affected if some entity lies in the way. It just jumps over them. Atmost only

C Implementing Selection Sort Recursively - This C Program implements a Selection Sort. 'Selection Sort' works by finding the smallest unsorted item in the list and swapping it with the item in the current position. It is used for

Display its own Source Code as its Output - Display the content from the same file you are writing the source code. Open the file you are currently writing using statement fopen and assign it to the pointer fp. Scan the every

C++ Codings Find the Maximum Subarray - Implement the 'naive method' to find the sub array having a maximum sum. The worst case time 'Complexity' of the algorithm is 'O(n*n)'. Take the input of the 'integer array'. Compare

C Programming Codes Reverse an Integer - C Reversing an integer, takes an integer input from the user. Then the while loop is used until n != 0 is false. In each iteration of while loop, the remainder when n is divided by 10