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. 744 views since Sep 1, 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. 317 views since Sep 2, 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. 305 views since Aug 25, 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. 256 views since Aug 25, 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. 242 views since Jan 1, 2009

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. 240 views since Dec 19, 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. 240 views since Sep 2, 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. 229 views since Aug 23, 2008

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. 227 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. 222 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. 222 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. 219 views since Aug 25, 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. 211 views since Aug 25, 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. 209 views since Jan 1, 2009

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. 205 views since Sep 1, 2008

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. 194 views since Aug 25, 2008