10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

clrscr();<br />

while(1)<br />

{<br />

printf("\nenter the nums of row and column of matrix A\n");<br />

scanf("%d%d",&m,&n);<br />

create_m(a,m,n);<br />

printf("\nenter the nums of row and column B\n");<br />

scanf("%d%d",&p,&q);<br />

create_m(b,p,q);<br />

printf("\nMATRIX A IS\n");<br />

display_m(a,m,n);<br />

printf("\nMATRIX B IS\n");<br />

display_m(b,p,q);<br />

if(n==p)<br />

{<br />

multi_m(c,a,b,m,n,q);<br />

printf("\nAFTER MULTIPLYING A & B MATRIX C IS \n");<br />

display_m(c,m,q);<br />

}<br />

else<br />

printf("MULTIPICATION IS NOT POSSIBLE");<br />

break;<br />

}<br />

}<br />

FOR TRANSPOSE:‐<br />

#include<br />

#include<br />

void create_m(int [10][10],int,int);<br />

void display_m(int [10][10],int,int);<br />

void multi_m(int [10][10],int [10][10],int [10][10],int,int,int);<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 136 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!