下面的程序段执行后,输出的结果是以下哪个选项?StringBufferbuf=newStringBuffer("Beijing2008");buf.insert(7,"@");System.out.println(buf.toString());
A: Beijing@2008
B: @Beijing2008
C: Beijing2008@
D: Beijing
E: 2008
A: Beijing@2008
B: @Beijing2008
C: Beijing2008@
D: Beijing
E: 2008
举一反三
- 以下程序的功能是();main(){ FILE *fp; char str[]="Beijing 2008"; fp=fopen("file2","w"); fputs(str,fp); fclose(fp);} A: 在屏幕上显示"Beijing 2008"; B: 把"Beijing 2008"存入file2文件中; C: 在打印机上打印出"Beijing 2008"; D: 以上都不对;
- Beijing _____the 29th Olympic Games in 2008 .
- Beijing is the ______ city of the 2008 Summer Olympic Games.
- By the end of 2008, she (be)()in Beijing for4 years.
- The Beijing 2008 Olympic Games emblem is filled ______ Beijing's hospitality and hopes. A: to B: of C: with D: at