- 博客(8)
- 资源 (3)
- 问答 (1)
- 收藏
- 关注
原创 文章标题
[leetcode]evaluate-reverse-polish-notation题目内容Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are+,-,*,/. Each operand may be an integer or another expressio
2016-09-12 14:38:16
188
原创 欢迎使用CSDN-markdown编辑器
[LeetCode111]minimum-depth-of-binary-treeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
2016-09-12 13:00:55
204
原创 qt下bezier曲线的绘制(C++)
bezier曲线在编程中的难点在于求取曲线的系数,如果系数确定了那么就可以用微小的直线段画出曲线。bezier曲线的系数也就是bernstein系数,此系数的性质可以自行百度,我们在这里是利用bernstein系数的递推性质求取。简单举例两个点p0,p1 为一阶曲线 系数为 (1-u)p0+u*p1; 将系数存在数组中b[0] = 1-u b[1]=u三个点 p0 p1 p2
2015-11-24 14:46:10
4350
1
原创 QT窗体背景色设置
第一种方法 this->setStyleSheet ("background-color: rgb(0, 0, 0);");缺点 滚动条会出现背景变黑的情况 很不爽第二种 this->setAutoFillBackground(true); this->setBackgroundRole(QPalette::Window);缺点 只能使
2015-10-14 23:50:33
5907
原创 c语言的菜鸟理解到深入学习1--关于printf的小细节printf(s,i);竟然是对的
#include int main(){char* s = "%d";int i =7;printf(s,i);return 0;}
2014-11-24 19:57:20
842
QCamera如何得到每一帧图片
2015-01-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人