gpt4 book ai didi

c++ - 为什么这个 "Loop Body"是空的?

转载 作者:太空宇宙 更新时间:2023-11-04 15:21:11 24 4
gpt4 key购买 nike

我参加了测试,但我的答案是错误的,我不确定为什么。有人可以帮助我吗?

**In the following segment of code, 
number = 1
while(number <= 10);
{
cout<<number<<endl;
}

循环体是__.**

           **A. empty  

不正确 B. 大括号之间的所有内容
C.cout< D. 数量 <= 10;**

答案:A

最佳答案

紧接在 while block 之后的分号。

关于c++ - 为什么这个 "Loop Body"是空的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18906642/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com