Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Classes Pt 2 c++

//g++  5.4.0

#include <iostream>

class log{
    public:
        const int LogLevelError = 0;
        const int LogLevelWarning = 
    private:
        int m_loglevel;
    public:
        void SetLevel(int level)
        {
            m_loglevel = level;
        }
}

int main()
{
    std::cout << "Hello, world!\n";
}
 run  | edit  | history  | help 0