Visual Basic Programming Code Examples
Visual Basic > Windows and Controls Code Examples
Shutdown restart logoff the local machine
The Greatest Number between 3 Numbers -
This c++ program shows the greatest number between 3 numbers use 'if-else-if' statement. It takes three numbers as input from user and output the greatest number. Enter value first
Writing Data into a Text File C++ program -
A 'while loop' is used and will terminate when user will press esc key. To get the characters a function 'getche()' is used from conio.h which will store in 'char variable' & store into the file
C Code Check if an Integer is Odd or Even -
C Language Program takes the given integer & checks whether the integer is odd or even. Take the integer to be checked as input. Find the remainder of the integer by dividing it by
Check Whether a Number is Prime or Not -
A prime number is a positive integer which is divisible only by 1 and itself. Example: 2, 3, 5, 7, 11, 13... If the for loop terminates when the test expression of loop i <= n/2 is false, it is a
Code Shows a Client Server in C language -
Message queue program that shows a client server implementation this is the reciever program using Message Queues. Let us set up the message queue. Then the messages...
Allocates Sufficient Memory for an Array -
C Programming language code example to Allocates sufficient memory for an array of num objects of size size. Return: Returns a pointer to the first byte of the allocated...
C++ Same Namespaces in Multiple Places -
In C++, namespace can be defined in different parts of the program. All the objects that are in different parts of a program, but if in same namespace will form one namespace. Better
Find Angles of triangle if two angles given -
C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of