Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


       

Visual Basic Programming Code Examples

Visual Basic > Code Snippets


Page 1 Page 2



C Language Coding Compare Two Strings
C program to compare two strings using loop 'Character by Character'. Comparing 2 strings Lexicographically without using string library functions. 'Input two strings' from user. Store

Program Finds Sum of Digits of a Number
Logic to find sum of digits of a given number in C programming. The main idea to find sum of digits can be divided in three steps. Extract last digit of the given number. Add extracted

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...

C++ Program Parameterized Constructor
In C++, "Constructor" is automatically called when object ("instance of class") create. It is 'special member function' of the class. It has same name of class, must be public member

Calculates Sum of Odd and Even Numbers
C program code find the sum of odd and even numbers from 1 to N. Take Number N upto which we have to find the sum as input. Using for loop take the elements one by one from 1

C Merges Lines Alternatively From 2 Files
Program that merges lines alternatively from 2 files & print result. Getting the names of file to be concatenated. Opening the files in read only mode. Opening a new file in write mode.

C++ Basic Operation Addition Subtraction
"Addition(+)" of 2 vectors. "Subtraction(-)" of 2 vectors. "Multiplication" of vector with the scalar. "Cross" product of 2 vectors. Scalar(or dot) product of 2 vectors. Negative of vectors

Collection of Sorting & Selection Routines
Shellsort, using Shell's (poor) increments. An Internal method for heapsort. i is the index of an item in the heap. Returns the index of the left child. Internal method for heapsort that is