我正在使用" Qt Creator 3.3.0(开源)"使用" Qt 5.4.0(MSVC 2010,32位)"
在我的相机课上,我遇到了奇怪的错误,我无法解决它..
class camera
{
public:
// for view matrix
float theta, phi;
float zoom;
// for projection matrix
float fovy;
float width, height;
float near, far;
camera();
camera(float inWidth, float inHeight );
~camera();
mat4 perspective();
mat4 view();
};
我在线上遇到错误:
float near, far;
错误是:
error: C2059: syntax error : ','
error: C2238: unexpected token(s) preceding ';'
error: C1903: unable to recover from previous error(s); stopping compilation
error: C2059: syntax error : ','
error: C2238: unexpected token(s) preceding ';'
我做错了什么?