I'm a beginner C++ programmer and not sure why this won't work:
#include <iostream>
using namespace std;
class Hello
{   private:
        int mess[];
    public:
        Hello() {
            mess = { 1, 3, 4, 546, 2 };
        }
};
int main()
{
    Hello h;
    return 0;
}
Keeps saying: error: assigning to an array from an initializer list
it's unhappy with the way I initialised the array "mess = { 1, 3, 4, 546, 2 };"
Why is this happening and how do I fix it?
Thank you!