题目内容

以下程序中函数scmp的功能是返回形参指针s1和s2所指字符串中较小字符串的首地址。 #include<string> char*scmp(char*s1,char*s2) if(strcmp(s1,s2)<0) return(s1); else retrun(s2); main() int i;char string[20],str[3][20]; for(i=0;i<3;i++)gets(str[i]); strcpy(string,scmp(str[0],str[1]));//库函数strcpy对字符串进行复制 strcpy(string,scmp(string,str[2])); puts(string) 若运行时依次输出:abcd、abba和abc三个字符串,则输出结果为( )。

A. abcd
B. abba
C. abc
D. abca

查看答案
更多问题

遇碱液显色的是

A. 紫草素
B. 丹参醌Ⅰ
C. 大黄素
D. 番泻苷A
E. 大黄素蒽酮

My grandfather used to have a beautiful gold pocket watch.He wore it on a fine gold chain across the front of his waistcoat,and when 1 was small he promised to leave it to me in his will.“When I’m gone,”he said,“this is going to be yours.”Unfommately that will never happen now.About three months ago,my grandfather came up to London to visit US.The first Sunday morningafter he arrived,my youngest son said he wanted to go to the park.“We’11 do better than that.”said my grandfather, "we’ll go and feed the pigeons in Trafalgar Square." So off they went. Theygot home about teatime and my grandfather was looking very upset. "My watch," he said, "it’sgone. Someone must have stolen it while we were feeding the pigeons.\ What did the grandfather use to have The grandfather used to have a beautiful______

有如下程序#include <iostream>using namespace std;class Apublic:virtual void func1 () cout<<"A1"; void func2() cout<<"A2"; ;class B: public Apublic:void func l() cout<<"B1"; void func2() cout<<"B2"; ;int main() A *p=new B;p->func1();p->func2();return 0;运行此程序,屏幕上将显示输出( )。

A. B1B2
B. A1A2
C. B1A2
D. A1B2

络合滴定曲线描述了滴定过程中溶液pH变化的规律性。

A. 对
B. 错

答案查题题库