Calculate the SUM

This C Language program reads a sequence of positive integers from the console, given by the user, and prints them out together with their sum. Use a Sentinel value (say 0) to determine when the sequence has terminated. So wehenever the user will enter 0 the program...

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

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

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

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

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

Export all the slides from a powerpoint presentation

This is a very simple Visual Basic source code to export all the slides from a powerpoint presentation. This source code can export images in any specified image format like .jpg, .bmp or .gif. I wrote this function while I was working on my undergraduate project...

Inverts the case of the selected text

This is a visual basic 6.0 source code that inverts the case of the selected text. If the upper case text is selected then it will convert it into lower case text. Otherwise to upper case. ASP '******************************************************* '* MYCPLUS Sample...

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