摘要:
http://denniskubes.com/2012/08/14/do-you-know-what-p-does-in-c/Update 1: There were some errors in the first version of this post. Thanks to lmm from hacker news for catching them. Code has been updated.Update 2: Thanks to memorylane from reddit for bugfixes with the last example and suggestions abo 阅读全文
摘要:
http://en.cppreference.com/w/cpp/language/operator_precedenceThe following table lists the precedence and associativity of C++ operators. Operators are listed top to bottom, in descending precedence.PrecedenceOperatorDescriptionAssociativity1::Scope resolutionLeft-to-right2++--Suffix/postfix increme 阅读全文