카타 8급 Return location

C++[ | ]

class Person
{
    public:
        Person(int x, int y, int z)
            : m_x(x), m_y(y), m_z(z)
        {
        }
        
        void location(int& x, int& y, int& z)
        {
            x = m_x;
            y = m_y;
            z = m_z;
        }
        
    private:
        int m_x;
        int m_y;
        int m_z;
};
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}