Visual Basic Programming Code Examples
Visual Basic > Other Code Examples
Flashing a window to get a users attention
How to Use Constructors in C++ language -
Read the comments in the following program to understand each part of the program. This is a "default constructor" of the class, you do note that it's name is same as class name and
Random Numbers Probability Distribution -
Program to generate random numbers using Probability Distribution Function. Probability distribution is based on "Probability Density" function. a probability density function (pdf),
C++ Finding Median of Two Sorted Arrays -
Program find the 'median' of elements where elements are stored in 2 'different arrays'. We need to find 'combined' median of 2 different 'data set'. So it includes sorting of both arrays
Read and write Strings Printf() and Scanf() -
Compare 2 strings, 'Concatenate Strings' and copy one string to another & perform various 'string manipulation operations'. We perform such operations using 'pre-defined' functions
Finds the Largest clique in a Planar 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
Code Finds the Sum of 2 Binary Numbers -
Take two Binary Numbers as input. Add each bits from the two binary numbers separately starting from LSB. The operations may be as follows. a) (0+0)=0, b) (1+0)=1, c) (1+1)=0 and
C Program to causes the function pointed -
C Programming Causes the function pointed to by func to be called upon normal program termination. Returns zero if the function is successfully registered as a termination and...
Whether a Path Exists Between two Given -
We create a queue for BFS. Mark the current node as visited and enqueue it. It will be used to get all adjacent vertices of a vertex. Get all adjacent vertices of the dequeued vertex s. If