hey
By: a guest | Mar 18th, 2010 | Syntax:
C++ | Size: 0.39 KB | Hits: 48 | Expires: Never
#include <iostream.h>
#include "apmatrix.h"
#include "math.h"
void main()
{
int row,column;
int max=-1000000000;
apmatrix<int>num(3,5,0);
for(int i=0;i<num.numrows();i++)
for(int j=0;j<num.numcols();j++)
{
cin>>num[i][j];
if(num[i][1]>max)
{
max=num[i][1];
row=i;
column=1;
}
}
cout<<"The largest number is "<<max;
}