单选题下列函数的功能是判断字符串str是否对称,对称则返回true,否则返回false,则横线处应填上{{U}}
{{/U}}。 Bool fun(char*str) {
int i=0,j=0; while(str[j])j++;
for(j--;i<ji++,j--); return
i______j; }
A. >==
B. ||
C. &&
D. <==
单选题有如下函数定义: void func(int a,int&b) {a++;b++;} 若执行代码段: int x=0,y=1; func(x,y); 则变量x和y的值分别是( )。
单选题下列关于E-R图的描述中正确的是
单选题已知p是一个指向类Sample数据成员m的指针,s是类Sample的一个对象。如果要给m赋值为5,( )是正确的。 A.s.p=5 B.s->p=5 C.s.*p=5 D.*s.p=5
单选题继承具有
____
,即当基类本身也是某一个类的派生类时,底层的派生类也会自动继承间接基类的成员。
单选题下面关于this指针的说法中错误的是( )。
单选题设有定义char str[80];以下不能将输入数据first\nsecond\n读取到数组str中的语句是
单选题设x,y,t均为int型变量,执行语句:x=y=3;t=++x||++y;,完成后,y的值为( )。
单选题下列函数的功能是判断字符串str是否对称,对称则返回true,否则返回false,则横线处应填上( )。 Bool fun(char*str) { int i=0,j=0; while(str[j])j++; for(j一;i
单选题有如下类定义: class AA{ int a; Public: AA(int n=0):a(n){} }; class BB:public AA{ public: BB(int n)—— }; 其中横线处的缺失部分是( )。
单选题数据的存储结构是指( )。
单选题数据字典(DD)所定义的对象都包含于______。
单选题有如下程序: #include <iostream> #include <iomanip> using namespace std; class CSum int x,y; public: CSum (int x0,int y0):x(x0),y(y0) friend ostream return os; ; int main() CSum y(3,5); cout<<setfill('*')<<8; cout<<y; return 0; 执行上面程序的输出是( )。 A.88 B.****88 C.****8****8 D.8****8
单选题某系统总体结构图如下图所示:该系统总体结构图的深度是()。
单选题有如下程序:
#include <iostream.h>
#include <iomanip.h>
using namespace std;
class CSum
{
int x,y;
public:
CSum (int x0,int y0):x(x0),y(y0){}
friend ostream
return os;
}
};
int main ()
{
CSum y(3,5);
cout<<setfill("*")<<8;
cout<<y;
return 0;
}
执行上面程序的输出是
单选题对建立良好的程序设计风格,下面描述正确的是( )。 A) 程序应简单、清晰、可读性好 B) 符号名的命名只要符合语法 C) 充分考虑程序的执行效率 D) 程序的注释可有可无
单选题下列语句中,错误的是( )。
单选题有如下程序:
#include<iostream>
using namespace std;
class TestClass{
protected:
TestClass(){cout<<"x";)
TestClass(char c){cout<<c;}};
class TestClass1:public TestClass{
public:
TestClass1(char c){cout<<c;}};
int main(){
TestClass1 d1("y");
return 0;}
执行这个程序,屏幕上将显示输出______。
单选题下列程序的运行结果为( )。 #include <iostream> using namespace std; namespace m { int flag = 10; } namespace n { flag = 100; } void mian( ) { int flag = 0; using namespace n; cout<<flag<<","<<m:: flag; }
单选题下列关于函数的描述中,错误的是______。
