()对象代表性的具体标准,根据每次市场调查的目的和调查对象的特点来确定。
A.市场普查
B.重点调查
C.典型调查
D.抽样调查
参考答案:C
平衡膳食要求不饱和脂肪酸与饱和脂肪酸之比应为()。
A.7:02
B.2:01
C.5:03
D.3:02
[说明] 从文件in.dat中读取一篇英文文章存入到字符串数组xx中,以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排。最后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组xx中,最后把结果xx输出到文件OUT6.DAT中。 原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。 [函数] #include<string.h> #include<conio .h> #include<ctype.h> #include<stdio.h>char xx[50][80]; int maxline = 0 ; /*文章的总行数*/ int ReadDat (void) ; void WriteDat (void) ; void StrOL(void) char *p1,*p2,t [80]; int i; for (i=0; i<maxline; i++) p1=xx[i];t[0]=0; while (*p1) p1++; while (p1>=xx [i])while (! isalpha (*p1) &&p1 ! =xx [i]) p1--; p2 =p1; while( (1) )p1--; if (p1==xx [i]) if (isalpha (*p1) p1--;else if (! isalpha (* (p1+1;)) break; p2++; (2) ; strcat (t,p1+1) ; strcat (t, " ") ; strcpy (xx [i] ,t) ; void main if( (3) )printf ("数据文件in.dat不能打开! \n\007") ; return; StrOL (); writeDat (); getch;int ReadDat (void) FILE *fp; int i=0; char *p;if ((fp=fopen ("e:\\a\\\in.dat " , "r")) ==NULL) return 1; while (fgets (xx [i] , 80, fp) ! =NULL) p=strchr (xx [i] , ’\n’) ; if(p)*p=0 i++ ; maxline= (4) ; fclose (fp); return 0; void WriteDat (void) FILE *fp; int i; fp=fopen("e: \\a\\out6 .dat" ,"w"); for (i=0; i<( (5) ) ; i++) printf("%s\n" ,xx [i]); fprintf (fp, "%s\n", xx[i]); fclose(fp);