读书人

请教这句话如何翻译? which is of no

发布时间: 2012-04-09 13:41:24 作者: rapoo

请问这句话怎么翻译? which is of non-class type 'main()::foo*'
error: request for member 'x' in 'b', which is of non-class type 'main()::foo*'

[解决办法]
为何不把编译器和错误编号放出来,或者贴源代码,没有上下文直接翻译这句子没有意义哦
[解决办法]
请求b中的x, 但是b不是类类型.

改为:
b->x = 12;

读书人网 >C++

热点推荐