GENERAL - C Plus Plus Codes

Determinant Calculator

Description To calculate Determinant of a Matrix Using Recursion(Max: 4*4) Source Code //TO CALCULATE THE DETERMINANT OF MATRIX OF ANY ORDER USING RECURSION #include<iostream.h> #include<coni ...

0 Comments. 2081 views since Sep 1, 2008

Ticket Window

Description Ticket Window is a simple program to show the implementaion of QUEUE. Program takes as input the number of Tickets required and ENQUEUE them. Only two Tickets are allowed at one time.If more than two Tickets are demanded, two a ...

0 Comments. 1107 views since Aug 25, 2008

Analog Clock

Description This is a Code which demonstrates an Analog Clock. Source Code #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> void main() { int gd= ...

0 Comments. 1099 views since Aug 25, 2008

Memory Leak Example

Description In the above example memory is allocated for int *a and CTest *p , but at the end of fail to free the memory, this is example of memory leak. Source Code // MemoryLeak.cpp : Defines the ...

0 Comments. 1015 views since Dec 20, 2008

Simple Calculator

Description This is a program for a Calculator which performs Addition,Subtraction,Multiplication,Division,Percentage,Power. Source Code #include<iostream.h> #include<conio.h> #include<ma ...

2 Comments. 986 views since Sep 3, 2008

DDA Algorithm

Description Program to implement DDA Line Drawing Algorithm Source Code #include<iostream.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> #include& ...

0 Comments. 971 views since Aug 23, 2008

Singleton Class Example

Description Example shows how to create the singleton class. Source Code // SingletonSample.cpp : Defines the entry point for the console application. // #include "stdafx.h" cl ...

0 Comments. 948 views since Jan 2, 2009

Time Synchronization

Description Program to Create a Class which sets the Time(Time Synchronization). Source Code #include<iostream.h> # include<conio.h> class time { int hr,min,sec; public: //don't f ...

0 Comments. 887 views since Aug 25, 2008

Mouse Management Functions

Description This code demonstrates Mouse Management Functions. Source Code #include<iostream.h> #include<conio.h> #include<dos.h> #include<process.h> void main(){ clr ...

0 Comments. 868 views since Sep 3, 2008

Function Overloading

Description This is a simple Program which shows Function Overloading. Source Code # include<iostream.h> # include<conio.h> int area(int side) { return side*side; } int area(int l ...

0 Comments. 865 views since Aug 25, 2008

Publication Class

Description Complete implementation of Publication Class Source Code # include<iostream.h> # include<conio.h> class publication { char title[30]; float price; public: void ...

0 Comments. 858 views since Aug 25, 2008

Enhanced Publication Class

Description This Program keeps the detail Records of the Books and their Prices and Pages Source Code # include<iostream.h> # include<conio.h> class publication { char title[30]; ...

0 Comments. 848 views since Aug 25, 2008

Accessing Private Data Members

Description Accessing Data Members in C++ which have been declared Private. This is a flaw in the language. Source Code #include <iostream.h> #include <string.h> #include <conio.h ...

0 Comments. 838 views since Aug 25, 2008

Movement of Stack Variables

Description Movement of Variables in Stack without any Graphics. Source Code #include<iostream.h> #include<conio.h> #include<dos.h> #include<string.h> void hori(int,int); vo ...

0 Comments. 836 views since Sep 1, 2008

Memory Leak Example

Description Example Shows how copy constructor define and declare explicitly Source Code // CopyConstructor.cpp : Defines the entry point for the console application. // #include "stdafx.h&quo ...

0 Comments. 820 views since Jan 2, 2009

Overloading:Complex Arithmetic

Description Program for Overloading the Difference Operator for Complex Arithmetic. Source Code #include<iostream.h> #include<conio.h> class complex { float real; float img; pub ...

0 Comments. 819 views since Aug 25, 2008