I have the following code:
#pragma once
class Matrix{
public:
    Matrix();
    ~Matrix();
protected:
    float mat[3] = {0.0, 0.0, 0.0};
};
but I'm getting an error on the float mat[3] = {0.0, 0.0, 0.0};. It says Error C2059: syntax error : '{' and error C2334: unexpected token(s) preceding '{'; skipping apparent function body.
I am create the array correctly aint I? What is the problem then?