expression must have pointer-to-class type but it has type 我的问题是非类指针使用了 -> 或者 . 运算符。比如类型char 使用了 -> 运算符,虽然这个错误很好理解,但是当函数复杂的时候,还是挺难找的