摘要:
1. Really wonderful ask about " using namespace std; " http://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practiceGoogle C++ Style Guidehttp://google-styleguide.googlecode.com/svn/trunk/cppguide.xml2.http://blog.sina.com.cn/s/blog_4d3a204e010008xe.html3. V 阅读全文
posted @ 2013-11-20 21:51
centerall
阅读(343)
评论(0)
推荐(0)
摘要:
The keyword using is used to introduce a name from a namespace into the current declarative region. For example:// using#include using namespace std;namespace first{ int x = 5; int y = 10;}namespace second{ double x = 3.1416; double y = 2.7183;}int main () { using first::x; using second::y; c... 阅读全文
posted @ 2013-11-20 21:12
centerall
阅读(169)
评论(0)
推荐(0)
摘要:
Namespaces allow to group entities like classes, objects and functions under a name. This way the global scope can be divided in "sub-scopes", each one with its own name.The format of namespaces is:namespace identifier{ entities}Where identifier is any valid identifier and entities is the 阅读全文
posted @ 2013-11-20 20:59
centerall
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号