C++ Program to perform spars matrix addition using class
Solution:

/* Input is the matrix representation of respective spars matrices.
Output will be in Spars matrix form */
#include<iostream.h>
#include<conio.h>
void main()
{
    int i,j,k,l,lim,a[10][3],b[10][3],res[5][5],n1,n2;
    cout<<"Enter no of non zero elements of first sp mtrx\n";
    cin>>n1;


get the rest of the program here

Wednesday, August 10, 2011

C++ Program to perform spars matrix addition using class

C++ Program to perform spars matrix addition using class
Solution:

/* Input is the matrix representation of respective spars matrices.
Output will be in Spars matrix form */
#include<iostream.h>
#include<conio.h>
void main()
{
    int i,j,k,l,lim,a[10][3],b[10][3],res[5][5],n1,n2;
    cout<<"Enter no of non zero elements of first sp mtrx\n";
    cin>>n1;


get the rest of the program here