Visual Basic Programming Code Examples
Visual Basic > Other Code Examples
Combining the contents of two 2D arrays
Function Overriding in The C++ Language -
Function overriding is a feature that allows us to have a "same function" in child class which is already present in the parent class. A child class inherits the data members and member
Code Get Highest Order Set Bit of Number -
Highest position of a set bit from left to right in a number is said to be highest order set bit of that number. Highest order set bit of any negative integers is 31. Since, highest order...
Simple Mailing list use array of structures -
C programming code to Mailing list. Initialize the structure array. Initialize the list. Get a menu selection. Input addresses into the list. Find an unused structure. Delete an address.
C++ Programs Use Above Below Primitive -
Program to check whether two lines intersect to each other. The above-below primitive can be used to test whether a line intersects a line segment. It does iff one endpoint of segment
Types of Loops in The C++ Programming -
While Loop: While a given Expression is true it "Repeats the Statement" in the loop body. Before executing the Loop Body it tests the condition for True or False. Do...While Loop:
C++ Finds All Roots of Quadratic Equation -
Program accepts "coefficients" of a quadratic equation from the user and displays the roots (both real and complex roots depending upon the discriminant). 'ax^2+bx+c = 0' (where a, b,
C Programming coding Calendar example -
This is because a leap year does not strictly fall on every fourth year. If a year is divisible by 4, then it is a leap year, but if that year is divisible by 100, then it is not a leap year.
Finds the Number of Elements in an Array -
Formula that we are using to find the number of elements is common for all types of array. In this example, we have an array of double data type, however you can use the same...