下面()不是文本的显示方式。
第1题:
阅读下列C++程序和程序说明,将应填入(n)处的字句写在对应栏内。
【说明】Point是平面坐标系上的点类,Line是从Point派生出来的直线类。
include <iostream.h>
class Point
{public:
Point (int x, int y) ;
Point (Point &p) ;
~Point();
void set (double x, double y) ;
void print();
private:double X,Y;
};
Point::Point (int x, int y) //Point 构造函数
{X=x; Y=y; }
Point::Point ( (1) ) //Point 拷贝构造函数
{X=p.X; Y=p.Y;}
void Point::set (double x, double y)
{X=x; Y=y; }
void Point::print()
{cout<<' ('<<X<<","<<Y<<") "<<endl; }
Point::~Point()
{cout<<"Point 的析构函数被调用! "<<endl;
class Line: public Point
{public:
Line (int x, int y, int k) ;
Line (Line &s) ;
~Line();
void set (double x, double y, double k)
void print();
private:double K;
};
(2)//Line 构造函数实现
{ K=k;}
(3)//Line 拷贝构造函数实现
{K=s.K;}
void Line::set (double x, double y, double k)
{ (4);
K=k;
}
void Line::print()
{cout<<" 直线经过点";
(5);
cout<<"斜率为: k="<<K<<endl;
}
Line: :~Line()
{cout<<"Line 析构函数被调用! "<<endl;
}
void main()
{Line 11 (1,1,2) ;
11 .print();
Linel2 (11) ;
12.set (3,2,1) ;
12.print();
}
第2题:
A.Line35willnotcompile.
B.Line36willnotcompile.
C.Line37willnotcompile.
D.Line38willnotcompile.
第3题:
关于下面HTML代码行,描述正确的是______。 <ol> <li>巴西</li> <li>意大利</li> <li>德国</li> </ol>
A.无序列表显示文本
B.有序列表显示文本
C.一组单选按钮
D.一组复选框
第4题:
文本框只能显示单行文本,要显示多行文本应该使用列表框控件。
A对
B错
第5题:
使用CSS,要隐藏元素,应选用()显示方式。
第6题:
在fireworks中,在固定宽度文本块或自动调整大小文本块之间切换可以进行下面哪个操作?()
第7题:
在Dreamweaver中插入单行文本域时,下面不是文本域形式的是:()
第8题:
Given: 35.String #name = "Jane Doe"; 36.int $age = 24; 37.Double _height = 123.5; 38.double ~temp = 37.5; Which two statements are true?()
第9题:
关于“文本窗口”和“命令窗口”,下面说法错误的是()。
第10题:
11. double d = Math.random(); Which is true about d after line 11?()
第11题:
bight block
gin block
heel block
snatch block
第12题:
对
错
第13题:
A.public double max(double x,double y)
B.publicintmax(intn,int k)
C.publicintmax(intx,int y, int z)
D.public double max(double n,double k)
第14题:
在Dreamweaver中插入单行文本域时,下面不是文本域形式的是()
A、限制行域
B、单行域
C、密码域
D、多行域
第15题:
使用VC6打开考生文件夹下的工程RevProj14。此工程包含一个源程序文件RevMain14.cpp,但该程序中类的定义有错误。请改正程序中的错误,使它能得到正确结果。
注意,不要改动main函数,不得删行或增行,也不得更改程序的结构。
源程序文件RevMain14.cpp中的程序清单如下:
//RevMain14.cpp
include<iostream>
include<math>
using namespace std;
class Point
{
private:
double x;
double y;
public:
Point(){}
void Point(double x1,double y1)
{
x=x1;
y=y1;
}
void setvalue(double x,double y)
{
x=x;
y=y;
}
double getx ()
{
return x;
}
double gety()
}
return y;
}
void print()
{
cout<<"x="<<x<<",y= "<<y<<end1;
}
~Point(){}
};
class Line
{
private:
Point p1;
Point p2;
double width;
public:
Line(double x1,double y1,double x2,double y2,double d)
:p1(x1,y1),p2(x2,y2)
{
width=d;
}
~Line(){}
void displength()
{
double 1;
1=sqrt((p1.getx{)-p2.getx())*(p1.getx()-p2-getx())+
(p1.gety()-p2.gety())*(p1.gety()-p2.gety()));
cout<<"the length of Line is "<<1<<end1;
}
};
int main()
{
Line *p1;
Line 1(5,15,25,35,0.5);
p1=&1;
p1->displength();
return 0;
}
第16题:
文本框中只能显示单行文本,要显示多行文本应该使用列表框控件。
第17题:
在Illustrator界面的【段落】面板中的“对齐”按钮的主要作用是()。
第18题:
Erase Tool(橡皮擦工具)选项栏中有哪些橡皮类型:()
第19题:
文本框只能显示单行文本,要显示多行文本应该使用列表框控件。
第20题:
在1个突发脉冲(burst)中,可能会传送()
第21题:
35.String #name="Jane Doe";36.int$age=24;37.Double_height=123.5;38.double~temp=37.5;Which two are true?()
第22题:
EraseTool(橡皮擦工具)选项栏中有哪些橡皮类型()
第23题:
设置段落中各行文本的对齐方式效果
选择文本块或文本路径
设置首行悬挂缩进
设置段落首行缩进