![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
酸乳酸乳
这个作者很懒,什么都没留下…
展开
-
剑指offer c++
3.从你头到尾打印链表 /** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * }; */ class Solution { public: ...原创 2018-12-22 19:10:29 · 288 阅读 · 0 评论 -
c++ 优先级
一共有十五个优先级: 1 () [] . -> 2 ! ~ -(负号) ++ -- &(取变量地址)* (type)(强制类型) sizeof 3 * / % 4 + - 5 >> << 6 > >= < <= 7 == != 8 & 9 ^ 10 | 11 &...原创 2018-12-22 19:52:15 · 796 阅读 · 0 评论 -
剑指offer c++
用两个栈实现队列 class Solution { public: void push(int node) { while(!stack1.empty()){ stack2.push(stack1.top()); stack1.pop(); } stack1.push(node); ...原创 2018-12-24 16:57:54 · 202 阅读 · 0 评论