Visual Basic Programming Code Examples
Visual Basic > Applications VBA Code Examples
Accessing SQL Server from C++ Language -
Forward declarations of the error handler and message handler. The Connection with "SQL" Server. Install user-supplied error functions & message-handling functions. Get DBProcess
Program Count No of Lines & Blank Lines -
Open the file and point it to the file pointer fpoint1. Initialize the variables line_count, n_o_c_l, n_o_n_b_l, n_o_b_l, n_e_c to zero. Using while loop read the next line character
C++ Return the Structure from a Function -
In this C++ example, we have "two functions" one gets the values from user, assign them to structure members and returns the structure and the other function takes that structure as
C Language Check Triangle is Valid or Not -
C Program code to input side of a Triangle & check whether triangle is valid or not using if else. A triangle is valid if sum of its two sides is greater than the third side. Means if a, b, c
C Program Code Performing Binary Search -
C program, Using Recursion, performs binary search. In this C program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted
C Compute the Sum of Digits in an Integer -
C Program take the integer as input. Divide the input integer by 10, obtain its remainder and quotient. Increment the new variable with the remainder got at step 2. Repeat the
Goto Statement in The C++ programming -
The "goto statement" is used for transferring the control of a program to a given label. The syntax of goto statement looks like this: In a C++ program, we have any "number of goto"
C++ Program Implements Fibonacci Heap -
Link nodes in fibonnaci heap. Union nodes in fibonnaci heap. Extract min node in fibonnaci heap. Consolidate node in fibonnaci heap and Decrease key of nodes in fibonnaci heap. Find