下列程序的主要功能是#include "stdio.h"void main(){ FILE *fp; char ch; long count1=0,count2=0; fp=fopen("q1.c","r"); while(!feof(fp)) { ch=fgetc(fp); if(ch=='{'}count++; if(ch=='}') count2++;} if(count1==count2) printf("YES!\n"); else printf("ERROR!\n"); fclose(fp);}