设有两个串S1和S2,求串S2在S1中首次出现位置的运算称作()。
若REPLACE(S,S1,S2)表示用字符串S2替换字符串S中的子串S1的操作,则对于S=“Beijing&Nanjing”,S1=“Beijing”,S2=“Shanghai”,REPLACE(S,S1,S2)=()。
加速度m/s2的中文单位名称是(),中文符号10m/s2应读成().
如有char *s1=hello,*s2; s2=s1;,则( )。
若有char s1[]=abc,s2[20],*t=s2;gets(t);则下列语句中能够实现当字符串s1大于字符串s2时,输出s2的语句是( ).
函数strcpy(s1,s2)功能是把字符串s1复制到字符数组s2中
变量s1,s2,ave为int型,若s1=88,s2=96; ave=(s1+s2)/2;那么关表达式ave>=90的值是______。
若REPLACE(S,S1,S2)表示用字符串S2替换字符串S中的子串S1的操作,则对于S=“Beijing&Nanjing”,S1=“Beijing”,S2=“Shanghai”,REPLACE(S,S1,S2)=( )。
设有两个串S1和S2,求S2在S1中首次出现的位置的运算称作( )
若串S1=‘ABCDEFG’, S2=‘9898’ ,S3=‘###’,S4=‘012345’,执行concat(replace(S1,substr(S1,4,3),S3),substr(S4,index(S2,‘8’),length(S2)))其结果为( )
阅读下面的程序class StringDemo{public static void main(String[] args){String s1 = “a”;String s2 = “b”;show(s1,s2);System.out.println(s1+s2);}public static void show(String s1,String s2){s1 = s1 +”q”;s2 = s2 + s1;}}下列选项中,程序的运行结果是()
阅读下面的程序,选择正确的答案?() class StringDemo{ public static void main(String[] args){ String s1 = “a”; String s2 = “b”; show(s1,s2); System.out.println(s1+s2); } public static void show(String s1,String s2){ s1 = s1 +”q”; s2 = s2 + s1; } }
有如下程序: include<iostream> usingnamespacestd; intmain(){ inta[6]={23,l5,64,33,40,58}; ints1,s2; s1=s2=a[0]; for(int*p=a+1;p<a+6;p++){ if(sl>*p)s1=*P; if(s2<*p)s2=*p; } cout<<s1+s2<<endl; return0; } 运行时的输出结果是()。
已知CaC03和PbI2的溶度积均约为1×10-9,两者在水中的溶解度分别为S1和S2,下列关系正确的是: A.S1<S2 B.2S1=S2 C.S1>S2 D.S1≈S2
立井提升的最大加速度不得超过()。A.0.5m/s2B.0.75m/s2C.0.3m/s2D.0.4m/s2
平均制动减速度,最大常用制动为1.1m/s2,紧急制动为1.2m/s2()
立井中用罐笼升降人员的加、减速度都不得超过()。A.0.5m/s2B.0.7m/s2C.0.75m/s2
阅读以下函数fun(char*sl,char*s2){inti:0;while(sl[i]==s2[i]&&s2[i]!='\0')i++;return
S1="good",S2="morning",执行串连接函数ConcatStr(S1,S2)后的结果为()
"阅读以下函数fun(char *sl,char *s2){int i=0;while(s1【i】==s2【i】&&s2【i】!='\0') i++;return(s1【i】=='\0'&&s2【i】=='\0');}此函数的功能是是()
char *s1="hello",*s2;s2=s1;,则
若串S1=‘ABCDEFG’, S2=‘9898’ ,S3=‘’,S4=‘012345’,执行concat(replace(S1,substr(S1,length(S2),length(S3)),S3),substr(S4,index(S2,‘8’),length(S2)))其结果为()
以下程序main(){chars1[20]=“abc”,s2[20]=“123”;if(strcmp(s1,s2)>0)printf(“%s\n”,s1);elseprintf(“%s\n”,s2);}的输出结果是()
阅读以下函数: fun(char *s1,char *s2) int i=0; while(s1[i]==s2[i]&&s2[i]!="