error: expected constructor, destructor, or type conversion before '.' token

Posted Day_to_Day

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: expected constructor, destructor, or type conversion before '.' token相关的知识,希望对你有一定的参考价值。

error: expected constructor, destructor, or type conversion before ‘.‘ token  

找了半天原因,原来是犯了基础知识不扎实的错误,C++中,全局阈只能声明、初始化变量; 不能用于赋值、运算、调用函数等!!!

以上是关于error: expected constructor, destructor, or type conversion before '.' token的主要内容,如果未能解决你的问题,请参考以下文章