c+request for member 'result' in 'd4', which is of non-class type 'd()'
时间: 2024-01-23 12:02:46 浏览: 182
This error message indicates that you are trying to access a member variable called 'result' in an object of type 'd()', which is not a class type.
In C++, parentheses after a type name indicate a function type. Therefore, 'd()' is a function type that returns an object of type 'd'. It is not a class type that has members.
To fix this error, you need to make sure that you are accessing the 'result' variable in an object of a class type. Check your code to see if you are mistakenly calling a function instead of accessing an object.
相关问题
request for member 'x' in 'c', which is of non-class type 'int'
这个错误通常表示你试图在一个非类类型的变量上调用类成员函数或变量。在这个错误信息中,`x` 应该是一个类成员变量,而 `c` 是一个 `int` 类型的变量,因此你不能在 `c` 上调用 `x` 成员变量。
可能的原因是你错误地使用了一个变量,或者你的代码中存在语法错误。请检查你的代码并确保你正确地使用了类成员变量和函数。如果你仍然无法解决问题,请提供更多的代码和错误信息以供参考。
[Error] request for member 'pos' in 'k', which is of non-class type 'int'
This error occurs when you try to access the member variable 'pos' of an object 'k', but 'k' is not a class or struct type. This means that 'k' is probably defined as an integer or some other primitive data type, which does not have any member variables.
To fix this error, you need to make sure that 'k' is of a class or struct type that actually has a 'pos' member variable. Alternatively, you may need to adjust your code to use a different variable or approach that is appropriate for the data type of 'k'.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)