class matrix
{
private:
double m[2][2] {} ; // default member initialser
// to zero-initialise the array
public:
// no user-declared default constructor is needed because
// the implicitly declared default constructor would use
// the default member initialser to initialise m to all zeroes
};
in your you code you don't use = sign, is this due to fact that you had to use in older version of C++? I think C++14 or C++11???
Actually it's because he is using one of the recent versions of the C++ standard, C++11 or higher. And realize that C++14 is the current C++ standard, while C++17 is currently a work in progress.
C++11 was a revolutionary change: "C++11 feels like a new language" - Stroustrup
C++14 is a relatively minor extension to C++11.
Most of the additions by C++17 is to the standard library; other than fundamental changes to rules about evaluation of expressions, most of the other additions to the core language are just syntactic sugar.