The Standard C++ Library: IOStreams

You can do much more with the general I/O problem than just take standard I/O and turn it into a class.The iostreams classes are usually the first part of the C++ library that new C++ programmers learn to use. This chapter discusses how iostreams are an improvement...

Birthday Reminder

This graphics program reminds you of peoples’ birthdays. [code language=cpp]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is...

Miltiple Inheritance

The basic concept of multiple inheritance (MI) sounds simple enough: you create a new type by inheriting from more than one base class. The syntax is exactly what you’d expect, and as long as the inheritance diagrams are simple, MI can be simple as well. Or...

The Standard C++ Library: Generic algorithms

Algorithms are at the core of computing. To be able to write an algorithm once and for all to work with any type of sequence makes your programs both simpler and safer. The ability to customize algorithms at runtime has revolutionalized software development.The subset...

Number Conversions

This is another one of my numerical analysis university assignments. It is an extension of binary to decimal conversion code. The program converts a number in any base to a number in any other base. The user inputs the original number, the base it was written in and...

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, 3,123...

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