c/c++
hahaliu005
这个作者很懒,什么都没留下…
展开
-
C++操作符优先级
C++操作符的优先级 操作符及其结合性 功能 用法 LLL::::::全局作用域 类作用域 名字空间作用域 ::nameclass::namenamespace::nameLLLLL.->[]()()转载 2011-11-01 14:55:13 · 322 阅读 · 0 评论 -
Fibonacci
#includeusing namespace std;int feb(int n){ cout<<n<<endl; if(n == 0 ){ return 0; } if(n == 1){ return 1; } return feb(n - 1) + feb(n - 2);}int f(int n){ int tp; if(n == 1 || n == 2){原创 2013-07-02 21:53:02 · 406 阅读 · 0 评论