View Single Post
Old 07-02-2008, 08:12 PM   #410 (permalink)
mavihs
Techie By Heart
 
mavihs's Avatar
 
Join Date: Feb 2007
Location: Cyber City
Posts: 769
Default Re: Post ur C/C++ Programs Here

function 2 input a matrix:-
Code:
void input(int A[10][10], int &R, int &C)
{
     int i, j;
     cout<<"enter the no. of rows:";
     cin>>R;
    cout<<"Enter the no. of columns:";
    cin>>C;
    for(i=0; i<R; i++)
      {
         for(j=0; j<C; j++)
          {
            cin>>A[i][j];
          }
        }
}
__________________
█§ ║╖ î v â ╥╥╖█(™©)
mavihs is offline