- P(gun)]
·Pԇ}
·Pԇ}
1.class
{
public:
void f();
const void g();
private;
int data;
}
Ăx(xing)Ldata?
a.g() b.f() c. g()f() d.
2.which one calls a program to halt?(multiple answers)
A.assert(10>0) B.assert(10<0) C.assert(x=0) D.assert(x<0)< p="">
3.void time(int year,int moth=10,date=10);
Щx(xing)_{(dio)time()?
a.time(1995);
b.time(1995,1);
c.time(1995,1,2);
d.
4.Ăx(xing)Lһ˽гɆT?
a.ԪĹгɆT(sh) b.ĹгɆT(sh) c.˽гɆT(sh) d. e.
5.һĎׂЩe`?
a.void ~Time(int);
b.class Time
{
public:
private:
int hour=0;
};
c.int Time(const char*,const char*);
d.Time(const char*,const char*);
6.ʲôrõģ?
7.(@ô˼)
#include
int a =0;
void fn(int j,int *k)
{
int i=0;
i++;
int a=1;
*k=a;
j=i;
}
void main()
{
fn(1,2);
cout<< p="">
cout<<*k<< p="">
cout<< p="">
}
a,b,cĴӡY(ji)ʲô?
8.void f(________head_ptr);
head_ptr朱^f()һҪ朱M(jn)ijNĺ(sh)@朱ܱһ^Y(ji)c(din)
Mϑ(yng)ԓʲô?
a.node *, b.node &, c.node*&, d.node
9. һ
10
/
2 15
/ /
1 30 3 5
ȥĸ(ji)c(din)(ji)c(din)棬Щ(ji)c(din)ʹ@䲻Ӱ?
a. 2 b.15 c.1 d.3 e.5
10.(}Ŀ])
circular array of CAPACITY elements, last is an index into that array, formular for the index afer last?
11.MyStruct
{
int a;
char*p;
double b;
}
void main()
{
MyStruct s[20];
MyStruct *p1=(MyStruct*)malloc(sizeof(MyStruct));
MyStruct*p2=new MyStruct;
}
sizeof(MyStruct),sizeof(s);sizeof(p1),sizeof(p2);
12.
int fn(char *s)
{
int a=0;
while(*s++)
{
a++;
}
return a;
}
void main()
{
char str[20]="AAABBBCCC";
int i=fn(str);
int j=sizeof(str);
strcpy(str+3,"DDD");
cout<< p="">
}
i=?,j=?,ݔstr=?
·Pԇ}P(gun)£
ͶYԇPԇ}11-19
NλPԇ}Ŀ05-07
ʿʩPԇ}Ŀͷ11-21
V湫˾Pԇ}08-10
ӛƸĹPԇ}11-19
vӍPԇ} ԇ}02-24
ѸJAVAVվPPԇ}Ŀ11-21
ُˆTPԇ}ԇ}02-25
AC᠖ɭP(jng)11-19
SKP(jng)(jng)v11-27