Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int counter;
class Simple
{
public:
Simple ()
: m_counter(counter)
, m_lemon(0)
{
}
Simple (const Simple& that)
: m_counter(that.m_counter)
, m_lemon (that.m_lemon)
{
}
Simple& operator =(const Simple& that)
{
// m_counter cannot be initialized here
this->m_lemon = that.m_lemon;
return *this;
}
private:
int& m_counter;
int m_lemon;
};
class WithDynArray
{
public:
private:
double* pData_; // Pointer to dynamic memory chunk
size_t dSize_; // This chunk number of elements
};
...
WithDynArray donttreadonme;
...
...
WithDynArray(): pData_(0), dSize_(0) {}
...