Visual Basic Programming Code Examples
Visual Basic > Windows and Controls Code Examples
Turn the Screen Saver on or off
C Count Occurrences of a Word in a String -
Write a C program to Count Occurrences of a word in a given string using loop. Input string and word from user. Get the total number of occurrences of a word in a string. Print count
Trim Leading & Trailing white spaces from -
I already explained how to remove leading as well as trailing white space characters from a given string. In this program we will Combine the logic of both in a single program. Logic to
C++ Permute All Letters of an Input String -
This algorithm takes the input of a string with all distinct characters 'N' Value. It places each character to every index by Swapping Values. A function to 'swap character' values of string
A Calculator by Switch Case and Functions -
Create menu driven Calculator that performs basic mathematic operations (Add, Subtract, Multiply, Divide) use switch case & functions. The calculator should input two numbers and
C Binary Equivalent of input Hexadecimal -
Program to display Binary equivalent of an input Hexadecimal Number (Hex to Binary Converter). Number will be accepted if you press Ctrl-Z & then ENTER after inputting...
C++ Coding Find Factorial using recursion -
User enters a number which stores in variable "num". Then number "passes as argument" in function call A static variable is used to check that how many times function is called. When
Sum of Natural numbers using While loop -
Find the sum of natural numbers using While Loop. When you use while loop, you have to initialize the loop counter variable before the Loop & Increment or Decrement it inside the
Program Represent Graph Using 2D Array -
Algorithm takes the input of the number of vertex & edges. Take the input of connected vertex pairs. Print the graph using 2D arrays. A function to "print the matrix". Print 1 if the