문제가 성적처리 프로그램작성인데 국,수,영 세과목의 총점과 총점에 따른 등급을 나타내는건데 지금 코드를 짰는데...


#include <iostream>

#include <iomanip>


using namespace std;


int main()

{

int x,y,z;

int i,j;

char A,B,C,D;

int num[4][10]={{100,80,90},{70,70,80},{90,90,80},{60,70,50}};

char name[4][10]={"린스컴","카이클","김광현","최동원"};


for (i=0; i<4; i++)

{

num[i][3]=num[i][0]+num[i][1]+num[i][2];

}


cout << "이름 국어 수학 영어 총점 등급" <<endl;

cout <<"============================================" <<endl;


for(i=0; i<4; i++)

{

cout << "" << name[i]<<" ";

for(j=0; j<4; j++)

{

cout << "" << "" <<num[i][j] << " ";

}

cout << endl;

}

cout << "=============================================" << endl;

return 0;

}


이렇게 하니까 

등급만 나오면 되는데 등급을 출력못하겠어요 ㅠㅠ


등급도 짜긴했는데 에러만 나고 안나오네요 도와주세요


제가짠 등급코드는 이건데 에러만 나네요 ㅠㅠ


for(i=0; i<4; i++)

{

if(num[i][3] >= 270)

{

num[i][3]=A;

}

else if(num[i][3] >=240 && num[i][3] <= 269)

{

num[i][3]=B;

}

else if(num[i][3] >=239 && num[i][3] <= 210)

{

num[i][3]=C;

}

else

{

num[i][3]=D;

}

}


이걸 집어 넣으면 에러가 나요 도와주세요