김현빈, 김태진 ¶
#include <stdio.h>
int main(int argc, const char * argv[])
{
{
int aa=0,ab=0,ac=0,i=0;
char a4,b4,c4,r4;
FILE* fp;
fp=fopen(argv1,"r");
for(i=0;i<4;i++){
fscanf(fp,"%s",r);
if(r0=='a'){
}else if(r0=='b'){
}else if(r0=='c'){
}
}
printf("%s %d\n",a,aa);
printf("%s %d\n",b,ab);
printf("%s %d",c,ac);
return 0;
}char a4,b4,c4,r4;
FILE* fp;
fp=fopen(argv1,"r");
for(i=0;i<4;i++){
fscanf(fp,"%s",r);
if(r0=='a'){
}else if(r0=='b'){
}else if(r0=='c'){
}
}
printf("%s %d\n",a,aa);
printf("%s %d\n",b,ab);
printf("%s %d",c,ac);
return 0;