Visual Basic Programming Code Examples
Visual Basic > Files Directories Drives Code Examples
Encrypt a file-folder (Windows 2000)
Using Continue Statement Inside for Loop -
As you can see that the output is missing the value 3, however the for loop 'iterate' though the num value 0 to 6. This is because we have set a condition inside loop in such a way, that
Cryptography by Transposition Technique -
This "C++" Program implement transposition technique. In "Cryptography", a transposition cipher is a method of encryption by which the positions held by units of plaintext (which are
C++ Programming code Copy File Content -
To copy the "content of a file" to the other file in C++ programming, you have to first ask to the user to enter the "source file" to open the source file and ask to enter the target source
C Calculate the Sum of the Array Elements -
C Program code calculates the sum of array elements using pointer. The program uses the pointer to traverse the array and adds up the element values there. C program to read
Code Find Second largest number in Array -
Code to find the largest and second largest element in an array. Step by step descriptive logic to find second largest element in array. Find second largest element of an array in C
Program Computes the Area of a Triangle -
C++ Language code to compute the area of a triangle using determinants. The 'plus/minus' in this case is meant to take whichever sign is needed so the 'answer is positive'. Do not say
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
Find Sum of Natural numbers from 1 to N -
Program find the sum of all natural numbers between 1 to n. Input upper limit to find sum of natural numbers. Store it in some variable say N. Initialize another variable to store sum