find函數(shù)的返回值是_________。
37.在C++中,聲明布爾類型變量所用的關(guān)鍵字是_________。
38.執(zhí)行下列代碼
int a=29,b=100;
cout<<setw(3)<<a<<b<<endl;
程序的輸出結(jié)果是:_________。
39.執(zhí)行下列代碼
cout<<"Hex:"<<hex<<255;
程序的輸出結(jié)果為_________。
40.C++語言中可以實現(xiàn)輸出一個換行符并刷新流功能的操控符是_________。
三、改錯題(本大題共5小題,每小題2分,共10分)下面的類定義中有一處錯誤,請用下橫線標(biāo)出錯誤所在行并指
出錯誤原因。
41.#include<iostream.h>
main(){
int x=5,y=6;
const int*p=&x;
*p=y;
cout<<*p<<endl;
}
42.#include<iostream.h>
class f{
private:int x,y;
public:fl(){x=0;y=0;}
print(){cout<<x<<〃<<y<<endl;}
}
main(){
f a;
a.fl(1,1);
a.print();
}
43.#include<iostream.h>
class f{
private:int x=0,y=0;
public:void fl(int a,int b){x=a;y=b;}
void get(){cout<<x<<','<<y<<endl;}
};
main(){
f a;
a.fl(1,3);
a.get();
}