![](https://cos-cdn.shuashuati.com/pipixue-web/2020-1231-2005-12/ti_inject-812ce.png)
设文件 num . dat 中存放了一组整数。以下程序的功能是;统计并输出文件 num. dat 中正整数、零和负整数的个数。请填空。 # include int main( ) { int p=0 , n=0 , z=0 , temp ; FILE* fpr fp =( ) ; if(fp= =NULL) printf("Cannot open file!\n") ; else { while( !feof(fp)) { fscanf(( )) ; if(temp>0) p++ ; else if(temp<0) n++ ; else( ) ; } } fclose( fp) ; printf(''positive=%d , negetive=%d , zero=%d\n" , p , n , z) ; return 0 ; }