问题

灌水区

@[Pentatonic_Vi0lin](/user/761743) 这不都是一样的吗,默认理解为 1/0 吧
by ikunTLE @ 2024-09-20 08:46:16


@[Pentatonic_Vi0lin](/user/761743) 都行啊,一个意思 比如你写 `bool flag = true;` 和 `bool flag = 1;`是一个意思
by guanhetian @ 2024-09-20 08:46:39


``` #include<bits/stdc++.h> using namespace std; bool c=1; int main(){ cout<<bool(c); return 0; } ``` 输出 `1`。
by array2022 @ 2024-09-20 08:47:12


看2023S组T9,四个选项true/false和1/0都有
by Pentatonic_Vi0lin @ 2024-09-20 08:48:51


@[Pentatonic_Vi0lin](/user/761743) 应该是true/false,但是输出出来就是1/0,你说的那题应该是true/false
by guanhetian @ 2024-09-20 08:51:30


@[Pentatonic_Vi0lin](/user/761743) 好像是true和false(~~大佬orz~~
by Never_care @ 2024-09-20 08:51:55


@[guanhetian](/user/937470) @[Never_care](/user/931764) 感谢
by Pentatonic_Vi0lin @ 2024-09-20 08:54:01


|