Copying one file into another

Similar to Unix’s cp command. This program will be called with two parameters, the names of two files. It copies the second to the first. [sourcecode language=’cpp’] /******************************************************* * MYCPLUS Sample Code...

Borland C/C++ compiler Interface

This is a Borland C/C++ compiler Interface using the graphics.h library. This program uses many functions of graphics.h library provided by C Language. like line(), setcolor(), outtextxy() etc… You can play around with this code to learn how to make simple and...

Small Help Dialog

A small help dialog in DOS mode graphics. It can b used in any application for help purpose or showing messages to the user. It uses the ASCII characters to build the windows shpe and then I have used the gotoxy() function to place the cusror at that location to print...

Enumerated type variable

Example that uses an enumerated type variable. This example uses enumerated type is used in C++ in exactly the same way it was used in ANSI-C with one small exception, the keyword enum is not required to be used again when defining a variable of that type, but it can...

Graphics

Small C Language Program to show the drawing and filling of some basic shapes like rectangle, circle etc… with colors and different shades. First of all I have created a characters aray of patterns that will fill the drawing, then initialize the graphics mode...

Defensive Programming Techniques

Writing perfect software may be an elusive Holy Grail for developers, but a few defensive techniques, routinely applied, can go a long way toward narrowing the gap between code and ideal. Nothing will give you more peace of mind than thoroughly tested code. If...

Graphical Scientific Calculator

Nice graphical calculator.It has all the functinalities of a scientific calculator. Good User Interface with buttons. User can use mouse too to perform the required operation. So Do see itThanks [sourcecode language=’c’]...

Insertion in Arrays

How to insert an element in an array at any point. And then print the updated array C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is...

Linked List Demo

A small linked list traversal program to show the basics of linked lists. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Multiplication of Matrices

A program to find the multiplication of the given matrices [sourcecode=c]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Tree manipulation and traversing

Nice tree manipulation and traversing C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of...

Simple operations with arrays

The following C programming code performs simple operations on arrays. It initializes an array by two different ways and prints out the result of the array initialization. C /******************************************************* * MYCPLUS Sample Code -...

Data Time and Year

Starting to use enumerated types: Printing for each day of the week, today, yesterday, and tomorrow, both as a string and as a number. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made...

C Program to compare two integer arrays

This C program compares two distinct arrays and if the arrays are same then content results in FALSE. The behavior of comparison is explained when we note that the comparison is a comparison of addresses, not contents. C #include < stdio.h > int main(void) { int...

Read/writing/reversing integer arrays

The simple program Reads and traverse, write arrays and reverse the elements in an integer array. [sourcecode language=’cpp’] /******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code...

Linear searches.

Read an integer array and then do linear searches. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * *...

Finding the Prime number

It prompts the user to enter an integer N. It prints out if it is a prime or not. If not, it prints out all of its proper factors. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made...

wav sound player class

This is a visual basic 6.0 wav sound player class that plays any selected sound file in .wav format. It has the filename property to select the file and play property to play the sound file. ASP '******************************************************* '* MYCPLUS...

256-bit Serpent VB Implementation

This is an extremely slow but working Visual Basic implementation of the 256-bit Serpent algorithm. Serpent was a finalist for AES and appears to be a very secure powerful algorithm. The C implementation is by far the fastest and most efficient. Since Visual Basic is...

BASE 85 Encoding VB Class

This is a BASE 85 Encoding VB Class that expands the text to be encoded by 4:5. Used in Postscript and PDF documents. Usefull if binary data needs to be persisted in ASCII text. ASP '******************************************************* '* MYCPLUS Sample Code -...