gpt4 book ai didi

C++ 标记值的数据类型始终是 bool 值?对或错?

转载 作者:行者123 更新时间:2023-11-30 04:15:02 25 4
gpt4 key购买 nike

刚刚开始入门 C++ 类(class)。我有一个查询如下。

标记值的数据类型总是boolean?是真是假?

最佳答案

让我们看一个在标准中找到的哨兵值的例子:

A null-terminated byte string, or NTBS, is a character sequence whose highest-addressed element with defined content has the value zero (the terminating null character); no other element in the sequence has the value zero.

但是这个字符序列是什么类型(以及结束它的值零)?

A character sequence is an array object A that can be declared as T A [N], where T is any of the types char, unsigned char, or signed char, optionally qualified by any combination of const or volatile.

关于C++ 标记值的数据类型始终是 bool 值?对或错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18585397/

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