一、单项选择题
1、下列代码取决于Objective-C的______特性。
id myobj;
......
[myobj draw];
A.预处理机制 B.枚举数据类型 C.静态类型 D.动态类型
2、在Objective-C中,与object.toString等效的是______。
A.[NSObject getDescription] B.[NSObject stringWithFormat]
C.[NSObject getDetails] D.[NSObject description]
3、以下程序的运行结果是______。
void main(){
i ……此处隐藏15378个字…… p;int main()
{
int array[5][5]={
{0,1,2,3,4},
{10,11,12,13,14},
{20,21;22,23,24},
{30,31,32,33,34},
{40,4l,42,43,44}
};
cout<<findWithBinary((int*)array,5,5,1 7)<<endl;
cout<<findWithBinary((int*)array,5,5,14)<<endl;
return 0:
}
程序的运行结果为:
0
1