C and C++ Programming Resources

Custom Search

C++ Source Code

Number Conversions

Posted on September 9th, 2008 0 Comments

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 the base it wants to convert to. It then outputs the number in the converted base. /******************************************************* *...
Read More | Make a Comment

The Standard C++ Library: Strings

Posted on September 9th, 2008 0 Comments

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 the leverage you get from changing from C to C++.The string class member functions provide a...
Read More | Make a Comment

Solve the Quadratic equation using C++

Posted on September 9th, 2008 0 Comments

This program will solve quadratic equations. You can copy and paste it into an editor, save it and compile from there.I have compiled and run this on a RedHat GNU/Linux machine using kernel 2.4.20-6 and it works. If you are using another system ( windows or mac you may need to change the coding ). To compile: name it quadsolv.cpp then type < g++ -o...
Read More | Make a Comment

Phil Sykes

Posted on September 9th, 2008 0 Comments

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. massiveattack92(at)hotmail.com /******************************************************* * MYCPLUS...
Read More | Make a Comment

Flexible Vector and Matrix (Vectors and Matrix with Arbitrary Bounds)

Posted on September 9th, 2008 0 Comments

Here is Flexible Vector and Matrix (Vectors and Matrix with Arbitrary Bounds). The algorithm has been written by Alex Vinokur. Programming Language : C++. Any and all comments would be appreciated.   Flexible Vector and Matrix (30.1 KiB, 2,286 hits)
Read More | Make a Comment

Multiple inheritance

Posted on September 9th, 2008 0 Comments

In order to keep the program as simple as possible, all of the member methods are defined as inline functions.? This puts the code for the methods where it is easy to find and study.? You will also notice that all variables in both classes are declared to be protected so they will be readily available for use in any class which inherits them.? The code for each...
Read More | Make a Comment

Car Race Game

Posted on September 9th, 2008 1 Comment

You have to reach the finish line before the time goes out. There are many hurdles in your way. So be careful. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code is made available as a service to our * * visitors and...
Read More | Make a Comment

Database projects

Posted on September 9th, 2008 0 Comments

This a database management project . /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. ...
Read More | Make a Comment


Page 2 of 6123456