Write a Program in C++ to Create a Sorted One Way Linked List with n Nodes

Posted by & filed under Science & Technology.

Sorting is one of the most important operations performed by computers. In the days of magnetic tape storage before modern data-bases, it was almost certainly the most common operation performed by computers as most “database” updating was done by sorting transactions and merging them with a master file. It’s still important for presentation of data… Read more »

Write a Program In C++ To Convert The Infix Expression To Postfix Equivalent

Posted by & filed under Language, Software Development.

Infix, Postfix and Prefix Infix, Postfix and Prefix notations are three different but equivalent ways of writing expressions. It is easiest to demonstrate the differences by looking at examples of operators that take two operands. Infix notation: X + Y Operators are written in-between their operands. This is the usual way we write expressions. An… Read more »

Write a program in C++ to implement Stack with Operations PUSH, POP, and PEEP using Linked List

Posted by & filed under Language, Software Development.

In computer science, a stack is an area of memory that holds all local variables and parameters used by any function, and remembers the order in which functions are called so that function returns occur correctly. Each time a function is called, its local variables and parameters are “pushed onto” the stack. When the function… Read more »

Write a program in C++ To Implement Stack With Operation PUSH,POP and PEEP using Array

Posted by & filed under Language, Software Development.

In computer science, a stack is an area of memory that holds all local variables and parameters used by any function, and remembers the order in which functions are called so that function returns occur correctly. Each time a function is called, its local variables and parameters are “pushed onto” the stack. When the function returns, these locals… Read more »

Write a Program in C++ using the concept of class,to multiply two matrices.

Posted by & filed under Language.

#include<iostream.h> #include<conio.h> class promatrix { private: int m1[10][10],m2[10][10],p[10][10]; int r,c,i,j,k; public: promatrix(); //constructor void getmatrix(); void product(); void disprslt(); }; promatrix::promatrix() { for(i=0;i<10;i++) for(j=0;j<10;j++) //external defination of constructor { m1[i][j]=m2[i][j]=p[i][j]=0; } } void promatrix::getmatrix() { cout<<“\n\nEnter the size of the Matrix you want to Multiply:”; cout<<“\n\nNumber of Rows:”; cin>>r; cout<<“\n\nNumber of Columns:”; cin>>c; cout<<“\n\nEnter the… Read more »