当 unsigned/signed long int a; 是可能的 为什么 unsigned/signed long float/double a; 是不可能的?
为什么我会得到 too many types in declaration 后者的错误而不是前者的错误?
最佳答案
共有三种浮点类型:float
、double
和long double
。这些都没有 unsigned 等价物,因此将 signed
或 unsigned
放在它们前面是无效的。没有 long float
这样的类型。
关于c++ - 声明 C++ 中的类型太多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31098076/