C++ Programming Tutorial


Data File Structure Programs


Insert, edit, delete, append, display, Srch. Insert, delete, merge, delete multiple occurrences Arrays as a Stack in graphics


Stack operations using array Stack using static memory allocation Stack using dynamic memory allocation Double ended link list as a stack Lnked list as a Stack Infix expr. to Postfix expr. Postfix expr. into an Infix expr. Arrays as a Stack in graphics Stack as an Arithmetic expr. Evaluater Graphical Rep. of Stack Stack to traverse - inodr, postodr, preodr


Queue using static memory allocation Queue using dynamic memory allocation Circular queue Linked list as a Queue Double Ended linked list as a Queue Graphical Rep. of Queue Arrays as a Linear Queue Array as a Circular Queue Arrays as a Linear Queue ( in graphics ) Arrays as a Circular Queue ( in graphics )

Linked List

Singly link list Circular linked list Doubly link list Linked list as a Queue Linked list as a Stack Double Ended linked list as a Queue Double Ended linked list as a Stack Infix to Postfix - Linked List as Stack Circular doubly link list Single Ended Linked List - Sorting in both odr Hashing - double ended Linked List Sort of link list


Linked List as a Binary Srch. Tree Set Class using Binary Srch. Tree Maximum depth of Binary Srch. Tree Minimum Spaning Tree Prims algo - minimum spanning tree Traverse binary tree - inodr, preodr, post Find number in binary Srch. tree display levell


Bubble Sort Selection Sort Insertion Sort Radix Sort Merge Sort Quick Sort Heap Sort Linear Sort Shell Sort Topological Sort


Linear Srch. or Sequential Srch. Binary Search Breadth First Search Traversal Depth First Search Traversal Shortest Path-Given Source-Destination-Dijkstras


Simple implementation of Hashing Hashing using double-ended Linked List Hashing using Mid-Square Method Example of Hashing n term of the fibonacci series using recursion


Factorial of the given number using recursion Mystery of Towers of Hanoi using recursion



 void move(int n,int A,int C,int B)
      cout<<\"\\t Move the upper disc from   Stack-\" <<A<< \"   to   Stack-\"
                                  <<C<< \"\\n\";


 main( )
       clrscr( );

       cout<<\"\\n\\t **************   TOWERS OF HANOI   **************\\n\"<<endl;
       cout<<\" The Mystery of Towers of Hanoi is as follows : \\n\"<<endl;


       cout<<\"\\n\\t *************************************************\\n\"<<endl;

       getch( );
       return 0;

    Related Post:
  1. Program to computes the product of two matrices of size 4x4 using Strassens Algorithm (Improved Divide and Conquer Strategy)

  2. Program that computes and displays the factorial of the given number using recursion

  3. Program to implement the Kurskals Algorithm to solve Minimum Cost Spanning Tree Problem (MST) using Graphics with Mouse Support

  4. Program to interchange the values of two int , float and char using function templates

  5. Program that creats a 3D solid object using Translational Sweep Representatiom Method

  6. Program to covert a given Decimal Number into English Code

  7. Program to illustrate the use of the continue statement

  8. Program to display matrix table of n x m

  9. Program to print a Single Ended Linked List in Original & Reverse order and sort it in Ascending & Decending Order

  10. Program to show the implementation of Sutherland-Hodgeman Polygon Clipping Algorithm

  11. Program to fill different types of geometric shapes using Flood Fill Algorithm (Using Linked-List)

  12. Program that creates triangle based on user input

  13. Program to draw a Polygon

  14. Program to estimate the Integral value of the function at the given points from the given data using Trapezoidal Rule

  15. Program that reads in a matrix and checks if it has the parity property

  16. Program to draw an ellipse using MidPoint Ellipse Algorithm

  17. Program to show find the maximum depth of a Binary Search Tree

  18. Program to implement the Prims Algorithm to solve Minimum Spanning Tree Problem (MST) using Graphics

  19. Library system using pointers

  20. Program of telephone directory

Didn't find what you were looking for? Find more on Program to solve the mystery of Towers of Hanoi using recursion