题目详情
当前位置:首页 > 计算机考试 > 中级网络工程师
题目详情:
发布时间:2024-05-28 05:55:30

[简答题]【问题1】
请解释上述划线部分语句的含义

更多"【问题1】 请解释上述划线部分语句的含义"的相关试题:

[填空题]下列程序对加号进行了重载,划线部分的语句是 【15】
# include<iostream. h>
# include<math. h>
class Triangle

int x,y,z;
double area;
public:
Triangle(int i,int j, int k)

double s;
x=i;y=j;z=k;
s=(x+y+z)/2.0;
area=sqrt(s*(s-x)*(s-y)*(s-z));

void disparea( )

cout<<"Area="<<area<<endl;

friend double operator+(Triangle t1,Triangle t2)

______

;
void main( )

Triangle t1(3,4,5),t2(5,12,13);
double s;
cout<<"t1:";t1.disparea( )
cout<<"t2:";t2.disparea( )
s=t1+t2;
tout<<"总面积:="<<s<<endl;

[填空题]下列程序对加号进行了重载,划线部分的语句是______。 #include<iostream.h> #include<math.h> class Triangle { int x,y,z; double area; public: Triangle(int i,int j,int k) { double s; x=i;y=j;z=k; s=(x+y+z)/2.0; area=sqrt(s*(s-x)*(s-y)*(s-z)); } void disparea( ) { cout<<"Area="<<area<<endl; } friend double operator+(Triangle tl,Triangle t2) { ______ } }; void main( ) { Triangle tl(3,4,5),t2(5,12,13); double s; cout<<"tl:";t1. disparea( ); cout<<"t2:";t2. disparea( ); s=t1+t2: cout<<"总面积:="<<s<<endl; }
[简答题]【问题2】
某路由器(在图2-7中没有标出)的部分配置信息如下所示,请解释其中注明部分的含义。

!
username sp_lac password 7 104D000A0618
username Bob password 7 0605063241F41
vpdn etable
!
vpdn guoup1
!
accept dislin 12tp virtual-template 1 remote sp lac
local name Bob
!
lcp renegotiation always
!
no 12tp tunmel authentication
[简答题][问题3] VPN路由器配置如下:请解释画线部分含义: Vpdn—group 1 (1) Accept—dialin protocol 12tp virtual-template 1 terminate-from hostname a 801. (2) Local name keith Lcp renegotiation always (3) N0 12tp tunnel authentication
[填空题]下列程序不能通过编译,应该在划线部分填写的语句是 【9】
#include<iostream. h>
#include<stdlib. h>
double Fune(int a, int b, char ch) double x;
switch(ch)

case ’+’:
x=double(a) +b;
break;
case ’--’:
x= double(a) --b;
break;
case ’/’:
x=double(a) * b;
break;
case ’/’:
if(B) x=double(a) /b;
else
exit(1)
break
default:
exit(1);

______

void main( )

cout<<Func(32 , 6 ,’--’)<< ",";
cout<<Func(32, 6 ,’*’) <<",";
cout<<Func(32, 6 ,’/’) <<end1;

[填空题]下列程序不能通过编译,应该在划线部分填写的语句是______。 #include<iostream.h> #include<stdlib.h> double Func(int a,int b,char ch) { double x; switch(ch) { case’+’: x=double(a)+b; break; case ’-’: x=double(a)-b; break; case ’*’: x=double(a)*b; break; case’/’: if(B)x=double(a)/b; else exit(1); break; default: exit(1); } ______ } void main( ) { cout<<Func(32,6,’-’)<<","; cout<<Func(32,6, ’*’)<<","; cout<<Func(32,6,’/’)<<endl; }
[简答题]【问题3】
VPN路由器配置如下,请解释画线部分含义。
Vpdn-group 1(1)
Accept-dialin protocol 12tp virtual-template 1 terminate-from hostname a801(2)
Local name keith
Lcp renegotiation always(3)
No 12tp tunnel authentication
[简答题][问题3]
VPN路由器配置如下:请解释画线部分含义:
Vpdh-groupl- (1)
Accept-dialin protocol 12tp virtual-template 1 terminate-from hostname a801. (2)
Local name keith
Lcp renegotiation always (3)
No 12tp tunnel authentication
[填空题]下列程序完成从文件读取文件显示的同时写入第二个文件,则在程序中划线部分应该出现的语句是 【14】
#include<iostream, h>
#include<fstream, h>
void main( ) fstream filel, file2;
char fnl [10], fn2[10], ch;
cout<<"输入源文件名";
cin>>fn1;
cout<<"输入目标文件名";
cin>>fn2;
file1. open(fn1, ios :: in);
______
while((ch=file1. get( )) ! =EOF)

cout<<ch;
file2. put(ch)

file1, close( )
file2, close( );

[填空题]下列程序完成从文件读取文件显示的同时写入第二个文件,则在程序中划线部分应该出现的语句是______。
#include<iostream.h>
#include(fstream.h)
void main( )

fstream filel,file2;
charfnl[10],fn2[10],ch;
cout<<“输入源文件名”;
cin>>fnl;
cout<<“输入目标文件名”;
cin>>fn2;
filel.open(fnl,ios::in);
while((ch;filel.get( ))!=EOF)

cout<<ch;
file2.put(ch);

filel.close( );
file2.close( );

[单项选择]下列选项中,对划线语句解释最准确的一项是:
A. 谴责撒谎者的依据是内心对是非、善恶的正确认识 
B. 撒谎者自我谴责来自于他大脑中的前扣带回区域 
C. 善良的心地是谴责撒谎者的依据 
D. 撒谎者的自我谴责源于他大脑中“自我控制”区域的干预
[简答题][问题3]
请解释一下POSLX与BSD各代表什么含义

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码