c++ and VS 8

What does the : and comma signify I am using VS 8 and programming in C++


: m_lMaxWidthSpltColOne(0) // maximum width for 1st column
, m_lMinWidthSpltColOne(0)

Thanks
Last edited on
what does + means in this part of code: +?

Give us some context!

I suppose, that it was right after the constructor, like: Foo() : : m_lMaxWidthSpltColOne(0) , m_lMinWidthSpltColOne(0) {}. In that case it is a constuctor initialization list. It is equivalent to
1
2
3
4
5
Foo()
{
    m_lMaxWidthSpltColOne = 0;
    m_lMinWidthSpltColOne = 0;
}
Last edited on
Topic archived. No new replies allowed.