Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

::sin() and ::cos() [18 Feb 2007|11:47am]
I've seen a code including math.h, and then running:
        item->setPos(::sin((i * 6.28) / 10.0) * 150,
                     ::cos((i * 6.28) / 10.0) * 150);


What's the concret meaning of those "::"? Are them for referring to the global namespace (so sin() could be used)?

Thanks!
3 comments|post comment

navigation
[ viewing | February 18th, 2007 ]
[ go | previous day|next day ]
Image