下面程序段的运行结果是 。char *pt="abcde" ;pt+=1 ;cout<<*pt;
A: b
B: c
C: d
D: e
A: b
B: c
C: d
D: e
举一反三
- 以下程序的输出结果是()。point(char*pt);main(){charb[4]={'m','n','o','p'},*pt=b;point(pt);printf("%c\n",*pt);}point(char*p){p+=3;} A: p B: o C: n D: m
- 以下程序段的运行结果是( )。 char x[5]={'a', 'b', '\0', 'c', '\0'}; cout<<x;? 'a''b';|ab|ab c|abc
- 有以下程序,程序运行后的输出结果是( ) #include void fun(char *pt,char *p) { while(*pt) { if(*pt>='0'&& *pt<='9') *p=*pt,p++; pt++; } *p='\0'; } int main() { char *s="av18e06d-2s0yu",str[79]; fun(s,str); puts(str); } A: 18 B: 06 C: 180620 D: 180
- Using the notation Pt to designate this period's price level and Pt-1 to designate last period's price level, the formula for measuring the inflation rate from last period to this period is A: [(Pt - Pt - 1) / Pt] × 100. B: [(Pt -1 - Pt) / Pt - 1] × 100. C: [(Pt - Pt - 1) / Pt - 1] × 100. D: [(Pt -1 - Pt) / Pt] × 100.
- 设pt为Text组件,能正确设置pt响应事件的是( )。 A: pt.bind(KeyRelease,tKeyOut) B: pt.bind("<Control-KeyRelease-c>",tKeyOut) C: pt.bind("Key",tKeyOut) D: pt.bind("<KeyPress>","tKeyOut")