1 )用以下代码内容插入迷路的美女p (pmrdwkpstyle=' color : RGB (51,51,51 ) ) ) ) ) ) ) ) ) ) ) font-size:14px; line-height:26px '例如,设置以下代码块丢失的美女p style=' color : RGB (51,51,51 ); 字体系列: arial; font-size:14px; line-height :26 px ' # include iostream
#包含cmath
用户命名空间STD;
int main () )
{
双精度x,y;
int c;
大于cout的实数值x'endl;
cin x;
是if(x0 )
cout'Input error!' endl;
else
{
c=int(x )/2;
是交换机(c )
{
case 0:
y=x; 布雷克;
case 1:
case 2:
y=x * x 1; 布雷克;
case 3:
case 4:
y=sqrt(x1; 布雷克;
默认:
y=1/(x1; 布雷克;
}迷路的美女p style='font-family:Arial; line-height:26px'mrdwk/p迷路的美女p style=' color : RGB (51,51,51 ); 字体系列: arial; font-size:14px; line-height :26 px ' cout ' y=' yendl;
}
}迷路的美女p style=' color : RGB (51,51,51 ); 字体系列: arial; font-size:14px; line-height 336026 px '/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *。 font-size:14px; line-height:26px' 2)操作方法例如设置以下代码段的# include iostream # includecmathusingnamespacestd; int main () { double x,y; int c; 大于cout的实数值x'endl; cin x; if(x0 ) cout'Input error!' endl; ELSE{c=int(x )/2; 开关(c ) { case 0: y=x; 布雷克; case 1: case 2: y=x * x 1; 布雷克; case3:case43360y=sqrt(x1 ); 布雷克; default: y=1/(x 1); 布雷克; } cout 'y=' y endl; }