> 其他 >
函数:y=x (-5
人气:472 ℃ 时间:2020-08-15 18:19:27
解答
switch(x)
{
case -4:
case -3:
case -2:
case -1:
y = x;
cout谢谢,可是我加上头文件后调试时还是出现了错误,不知道哪里不对了是不是没有usingnamespace std;?没有具体错误不知道错在哪里啊。另外那个X和Y的值可以是小数吗?如果可以是小数的话那么就不能用switch语句
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版