# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Making & using a PopUp Menu

C++ Codings Simple Class Template Array -
Templates are a feature of the C++ Language that allows functions and classes to "operate" with generic types. A class template provides a "specification" for generating classes based

Take Decimal Number as input & converts -
C Program code takes the decimal number (entered by user) as input and converts it into an octal number using the function. In this c program, you should be familiar with the...

Generate Random Subset by Coin Flipping -
Prints a 'subset' of the given array using coin flipping method. The time complexity of this algorithm is O(n). Takes the input of 'n' data element and prints a possible subset. that, it

Daylight saving time indicator in C coding -
C Program the tm structure contains the following members. Seconds, 0-60, minutes, 0-59, hours, 0-23, day of the month, 1-31, Jan, 0-11, years from 1900, days since Sunday...

C++ Implement Shortest Path Algorithm -
For a general weighted graph, we calculate single source shortest distances in "O(VE)" time using 'Bellman-Ford Algorithm'. For a graph with no negative weights, we can do

C Find Multiplication of 2 Binary Numbers -
Take two binary numbers as input and store it in the variables binary1 and binary2. Initialize the variables multiply and factor with 0 and 1 respectively. Divide the variable binary2 by 10

C++ Program Find Quotient & Remainder -
In program, user enter 2 integers (divisor and dividend), computes quotient and remainder. To compute 'quotient and remainder', divisor and dividend should be integers. The division

C++ Language Passing Arrays to Function -
In this C++ Code, we are passing 2 arrays a & b to the "function sum()". Function adds the "corresponding elements" of both the arrays and display them. This c++ function adds the