no operator defined which takes a right-hand operand of type 'const char' (or th
#include <iostream.h>int maxmum(int ia[5][4]);
int main()
{
int a[5][4];
int i,j,m,n;
cout <<"please input grade:";
for(i=0;i<5;i++)
{for(j=0;j<4;j++)
cin >>a[i][i]>>' ';
cout <<a[i][j]<<' ';
cout<<endl;
}
maxmum(a);
}
int maxmum(int ia[5][4])
{
int i,j;
int m=0;
int n=0;
int max=0;
for(i=0;i<5;i++)
for(j=0;j<4;j++)
{
if(ia[i][j]>max)
{max=ia[i][j];
m=i;
n=j;}
}
cout<<"student number is"<<m<<endl;
cout<<"course number is"<<n<<endl;
}
为什么它老提示:error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'const char' (or there is no acceptable conversion)