题目内容

在创建对象时系统自动调用的函数是【 】。

查看答案
更多问题

阅读下列程序说明和C代码,将应填入(n)处的字句写在对应栏内。
[函数2.1说明]
函数void find(int *a, int n, int * max, int * min)的功能是在长度为n的整型数组a中,查找最大元素和最小元素的下标。main()中给出了调用find函数的一个实例。
[函数2.1]
include<stdio.h>
void find(int *a, int n,int *max,int * min)
{ int i;
*max =* min=0;
for(i=1;i<n;i+ +)
if(a[i]>a[* max]) (1);
else if(a[i]<a[*min]) (2);
return;
main()
{ int a[]={4,6,8,9,0,6},max,min;
find(a,6,(3));
printf("%5d%5d\n", max,min);
}
[函数2.2说明]
以下程序用来对从键盘上输入的两个字符串进行比较,然后输出两个字符串前端的公共部分。例如:输入的两个字符串分别是abcdefg和abceef,则输出为abc。
[函数2.2]
include <stdio.h>
main()
{ char str1[100],str2[100],str[100],c;
int i=0,s;
printf("\nInput string 1:");gets(str1);
printf("\nInput string 2:");gets(str2);
while(((4))&&(str1[i]!='\0')&&(str2[i]!='\0')){
(5);
i++;
}
printf("%s\n",str);
}

A—to be absent B—to confirm the flight
C—to attend the meeting D—to cancel the reservation
E—to reserve the hotel F—to give the permission
G—to fix a time H—to make a presentation
I—to make an appointment J—to be present
K—to contact somebody L—to decide on a budget
M—to finalize details N—to invite delegates
O—to choose a location P—to receive the feedback
51. ()和某人联系 ()邀请代表团
52. ()接受反馈意见 ()缺席
53. ()做介绍 ()确认飞机
54. ()定预算 ()预定住所
55. ()取消预定 ()选择地点

在C++中,派生类有三种继承方式,它们分别是公有继承、私有继承和【 】。

For this part, you are allowed 30 minutes to write a short essay entitled My Views on Remedial Examinations. You should write at least 150 words based on the outline given in Chinese below:
1. 补考是大学教育的一部分
2. 我对补考的看法
3. 如何发挥补考的作用
My Views on Remedial Examinations

答案查题题库