Category: C and C++

C++ Program for Bubble sort 4

C++ Program for Bubble sort

C++ Program for Bubble sort. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program for Bubble sort ***************************************************************/ #include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { int array[100],n,i,j,temp; clrscr(); cout<<"How many numbers–> "; cin>>n; cout<<"Enter...

C++ Program Program for Binary Search. 8

C++ Program Program for Binary Search.

C++ Program Program for Binary Search. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program Program for Binary Search. ***************************************************************/ #include&lt;iostream.h&gt; #include&lt;conio.h&gt; #include&lt;process.h&gt; void main() { int ar[100],beg,mid,end,i,n,search; clrscr(); cout<<"How many numbers...

C++ Program to implement a stack using linked list 22

C++ Program to implement a stack using linked list

C++ Program to implement a stack using linked list. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to implement a stack using linked list. ***************************************************************/ #include&lt;conio.h&gt; #include&lt;iostream.h&gt; #include&lt;process.h&gt; #include&lt;malloc.h&gt;    ...

C++ Program implement a stack using an array 12

C++ Program implement a stack using an array

C++ Program implement a stack using an array. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program implement a stack using an array ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h> void main() { int stack[150],top,n,i,max_stack,choice,element,n_pop;...

C++ Program to add and subtract 2 sparse matrices 0

C++ Program to add and subtract 2 sparse matrices

C++ Program to add and subtract 2 sparse matrices. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to add and subtract 2 sparse matrices ***************************************************************/ #include&lt;conio.h&gt; #include&lt;iostream.h&gt; #include&lt;process.h&gt;   int main()...

C++ Program to find the transpose of a Sparse matrix 0

C++ Program to find the transpose of a Sparse matrix

C++ Program to find the transpose of a Sparse matrix. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to find the transpose of a Sparse matrix ***************************************************************/ #include<conio.h? #include<iostream.h? #include<process.h?  ...

C++ Program to implement a single linked list 1

C++ Program to implement a single linked list

C++ Program to implement a single linked list and Perform the following operations. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to implement a single linked list and Perform the following...

C++ Program for Selection sort 1

C++ Program for Selection sort

C++ Program for Selection sort . /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program for Selection sort . ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h>   void main() { int array[100],n,i,j,temp; clrscr(); cout<<"How many...

C++ Program for QUICK SORT 7

C++ Program for QUICK SORT

C++ Program for QUICK SORT. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program for QUICK SORT. ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h>   void quickSort(int numbers[], int array_size); void q_sort(int numbers[], int left,...