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 illustrate the Insertion Sort

  2. Program that reads 10 students marks and displays average, lowest and highest marks

  3. Program of calculator

  4. Program to fill a Circle using Scan-Line Circle Fill Algorithm

  5. Program to show the implementation of Linked List as a Binary Search Tree

  6. Program to count number of words, lines and characters in given string

  7. Program that provides an example of static variables in class

  8. Program to show the implementation of Cohen-Sutherland Line Clipping Algorithm

  9. Program of Education System that maintains Institute Database using multilevel inheritance

  10. Program to help Umar in this task. Represent each city by one lowercase character. Thus, you can have at most 26 different cities to visit....

  11. Program to implement the Prims Algorithm to solve Minimum Spanning Tree Problem (MST)

  12. Program which shows content of a given 2D array

  13. Program to implement a Translator that reads an Infix Expression translates it into a Postfix Expression and evaluate the Postfix Expression

  14. Program to tokenized a given string

  15. Program to create queue / fifo using dynamic memory allocation

  16. Program that provides an example of dynamic memory allocation

  17. Program to maintain employee information also illustrate virtual class and inheritance


  19. Program to illustrate the relationship b/w union and structure

  20. Program to estimate the value of First Derivative of the function at the given points from the given data using Central Difference Formula

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