Exception Handling

Error recovery is a fundamental concern for every program you write, and it’s especially important in C++, in which one of the goals is to create program components for others to use. To create a robust system, each component must be robust.The goals for...

The Standard C++ Library: Strings

Standard C++ not only incorporates all the Standard C libraries (with small additions and changes to support type safety), it also adds libraries of its own. These libraries are far more powerful than those in Standard C; the leverage you get from them is analogous to...

Phil Sykes

This is a class which has a member function that takes 3 arguements – std::string thestlstring, int base, and int base2. the function converts a number stored in the form of an std::string from the first base to the second. Bases 2 – 16 are supported....

Information Hiding

Example of a program with a little information?hiding contained in it. C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

C++ Program to demonstrate SnakeMan game

It is a snake game same as in Nokia Mobile Phones written n C++ using Turbo C++ compiler. I assure that you would love it. The code is quite simple to understand. I would be happy if you visit it.   Snake Game (17.6 KiB, 4,638...

TIC TAC TOE

TIC TAC TOE Game 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 illustration. * * * *...

Bubble Sort

Read an integer array, print it, then sort it and print it. Use the bubble sort method C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and...

ballonpoking(A GAME IN C++)

This game will help all new C Language Programmers in understanding the concepts of graphics and object oriented programming in C++. So play and enjoy………… Please post your comments and rate the game. Regards Ehsan ul haq [code...

Graphical Calculator and Dairy

This is a Graphical calculator and graphical dairy which uses files to store the diary information. [code=’c’]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available...

TIC-TAC-TOE Enhanced Version – C++

This is an enhanced version of Tic-Tac-Toe (TTT) game by adding one more row and column. Actually I have played this newer version of Tic-Tac-Toe (TTT) game on a video game. So, when I learnt C/C++ programming, it was my wish to program this game myself using C/C++....

IP configuration

This sample illustrates how to programmatically change an IP address for a specific network adapter on your machine. This program also demonstrates how to retrieve existing network adapter IP configuration information. IP configurations can be changed for a specific...

SWAT GAME

SWAT GAME 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 illustration. * * * * Please...

Client and Overlapped Server and Server and ThreadServer

This program is a simple named pipe client that demonstrates the API calls needed to successfully develop a basic named pipe client application. When this application successfully connects to a named pipe, the message “This is a test” is written to the...

Car Race Game

This is a simple C++ program to make a car race game. It uses object oriented approach to generate different objects in the game such as using Car, Obstacle and Timer classes. The code draw objects using Graphics Mode by using initgraph() function. You have to reach...

Non-Trivial Class in C++

This date class is intended to illustrate how to write a non- trivial class in C++. Even though this class is non-trivial, it is still simple enough for a new C++ programmer to follow all of the details. C++ /******************************************************* *...

Database projects

This a database management project . 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...

Information/Data Protection

Example of data protection in a very simple program. [code language=cpp]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

OOP

first hint of object oriented programming 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...

C++ Program to simulate Cache Coherence mechanism Graphically

This C++ program simulates the cache coherence problem graphically. In computer architecture, cache coherence is the uniformity of shared resource data that ends up stored in multiple local caches. When clients in a system maintain caches of a common memory resource,...