void main(){
char py(int a){
static char ch[3];
if(a<=100&&a>=95){
strcpy_s(ch,"A+");
return *ch;
}
else if(a<=94&&a>=90){
strcpy_s(ch,"AO");
return *ch;
}
else if(a<=89&&a>=85){
strcpy_s(ch,"B+");
return *ch;
}
else if(a<=84&&a>=80){
strcpy_s(ch,"BO");
return *ch;
}
else if(a<=79&&a>=75){
strcpy_s(ch,"C+");
return *ch;
}
else if(a<=74&&a>=70){
strcpy_s(ch,"CO");
return *ch;
}
else if(a<=69&&a>=65){
strcpy_s(ch,"D+");
return *ch;
}
else if(a<=64&&a>=60){
strcpy_s(ch,"DO");
return *ch;
}
else if(a<=59&&a>=0){
strcpy_s(ch,"F");
return *ch;
}
}
이런식으로 포인터로 찍으면 ch안에있는 모든값이 나오나요??
돌려보세요 시바러마 컴없으면 되도않는 뇌컴파일하지말고 ideone.com ㄱ
안되네여 씁.. *포인터 빼도 에러뜨고