供电企业应当按照国家核准的电价和电能计量装置的记录,向用户()
A.计收电费
B.计算电量
C.计核电价
D.计约抄表
参考答案:A
下列给定程序中,函数fun()的功能是:删除字符串s中所有空白字符(包括Tab字符、回车符及换行符)。输入字符串时用’#’结束输入。 请改正程序中的错误,使它能得出正确的结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构. 试题程序: #include <string.h> #include <stdio.h> #include <ctype.h> fun(char *p) int !i, t; char c[80]; for(i=0,t=0;p[i];i++) if(!isspace(*(p+i))) c[t++]=p[i]; /**********************************/ c[t]=’\0’; strcpy(p,c); main() char c,s[80]; int i=0; printf("Input a string: "); c=getchar(); while(c!=’#’)( s[i]=c;i++;c=getchar(); s[i]="\0"; fun(s); puts(s);
2010年江苏农村居民人均纯收入比2005年约增长()。
A.58%
B.62%
C.66%
D.73%