# 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&lt;iostream.h&gt; #include&lt;coni ...

0 Comments. 2149 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. 1184 views since Aug 25, 2008

## Analog Clock

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

0 Comments. 1114 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. 1030 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&lt;iostream.h&gt; #include&lt;conio.h&gt; #include&lt;ma ...

2 Comments. 1007 views since Sep 3, 2008

## DDA Algorithm

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

0 Comments. 985 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 &quot;stdafx.h&quot; cl ...

0 Comments. 965 views since Jan 2, 2009

## Time Synchronization

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

0 Comments. 900 views since Aug 25, 2008

## Mouse Management Functions

Description This code demonstrates Mouse Management Functions. Source Code #include&lt;iostream.h&gt; #include&lt;conio.h&gt; #include&lt;dos.h&gt; #include&lt;process.h&gt; void main(){ clr ...

0 Comments. 887 views since Sep 3, 2008

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

0 Comments. 882 views since Aug 25, 2008

## Publication Class

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

0 Comments. 875 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&lt;iostream.h&gt; # include&lt;conio.h&gt; class publication { char title[30]; ...

0 Comments. 862 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 &lt;iostream.h&gt; #include &lt;string.h&gt; #include &lt;conio.h ...

0 Comments. 856 views since Aug 25, 2008

## Movement of Stack Variables

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

0 Comments. 854 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 &quot;stdafx.h&quo ...

0 Comments. 838 views since Jan 2, 2009