以下不能用于判断字符串str是否符合正则reg的语句是 A: !!reg.test(str) B: !!reg.exec(str) C: !!str.match(reg) D: !!str.contains(reg)
以下不能用于判断字符串str是否符合正则reg的语句是 A: !!reg.test(str) B: !!reg.exec(str) C: !!str.match(reg) D: !!str.contains(reg)
More haste, less speed.( ) A: This sentence contains simile B: This sentence contains metonymy C: This sentence contains hyperbole D: This sentence contains paradox
More haste, less speed.( ) A: This sentence contains simile B: This sentence contains metonymy C: This sentence contains hyperbole D: This sentence contains paradox
下列程序的运行结果为( ). void abc(char *str) { int a,b; for(a=b=0;str[a]!='\0';a++) if(str[a]!='c') {str[b]=str[a]; b++; }str[b]='\0'; } main( ) { char str[]="abcdef"; abc(str); printf("str[]=%s",str); }
下列程序的运行结果为( ). void abc(char *str) { int a,b; for(a=b=0;str[a]!='\0';a++) if(str[a]!='c') {str[b]=str[a]; b++; }str[b]='\0'; } main( ) { char str[]="abcdef"; abc(str); printf("str[]=%s",str); }
下列关于字符串使用正确的是() A: char str[10]; str="Hello"; B: char *str; strcpy(str,"Hello"); C: char *str1,str[10]="Hello"; strcpy(str,str1); D: char *str; str="Hello";
下列关于字符串使用正确的是() A: char str[10]; str="Hello"; B: char *str; strcpy(str,"Hello"); C: char *str1,str[10]="Hello"; strcpy(str,str1); D: char *str; str="Hello";
下面哪个选项不能将"hello"字符串存入字符数组str中( )。 A: char str[]="hello" ; B: char str[30]; strcpy(str, "hello"); C: char str[30];str="hello"; D: char str[30],*ps=str; strcpy(ps,"hello");
下面哪个选项不能将"hello"字符串存入字符数组str中( )。 A: char str[]="hello" ; B: char str[30]; strcpy(str, "hello"); C: char str[30];str="hello"; D: char str[30],*ps=str; strcpy(ps,"hello");
以下给字符数组str定义和赋值正确的是( )。 A: char str[10]; str={"China!"}; B: char str[ ]={"China!"}; C: char str[10]; strcpy( str,"abcdefghijkl"); D: char str[10]={"abcdefghijkl"};
以下给字符数组str定义和赋值正确的是( )。 A: char str[10]; str={"China!"}; B: char str[ ]={"China!"}; C: char str[10]; strcpy( str,"abcdefghijkl"); D: char str[10]={"abcdefghijkl"};
以下程序运行结果为()。 A: str>str1 B: str C: str=str1 D: str<>str1
以下程序运行结果为()。 A: str>str1 B: str C: str=str1 D: str<>str1
设有定义char str[80];以下不能将输入数据first\nsecond\n读取到数组str中的语句是 A: ein.get(str,strlen(str)); B: cin.getline(str,strlen(str)); C: cin>>str; D: cin.read(str,strlen(str));
设有定义char str[80];以下不能将输入数据first\nsecond\n读取到数组str中的语句是 A: ein.get(str,strlen(str)); B: cin.getline(str,strlen(str)); C: cin>>str; D: cin.read(str,strlen(str));
执行以下程序段后,输出结果是( )。 char str[20]="door",t; int i,j; i=0; j=strlen(str)-1; t=str[i]; str[i]=str[j]; str[j]=t; puts(str);
执行以下程序段后,输出结果是( )。 char str[20]="door",t; int i,j; i=0; j=strlen(str)-1; t=str[i]; str[i]=str[j]; str[j]=t; puts(str);
One way to prevent the European Community from becoming a modern Tower of Babel would be to make English the Community’s sole official language.( ) A: This sentence contains pun B: This sentence contains simile C: This sentence contains irony D: This sentence contains allusion
One way to prevent the European Community from becoming a modern Tower of Babel would be to make English the Community’s sole official language.( ) A: This sentence contains pun B: This sentence contains simile C: This sentence contains irony D: This sentence contains allusion