c++
zhenkaiwang
这个作者很懒,什么都没留下…
展开
-
using namespace std;
//#include using namespace std;if delete the first line,the second line is error! So, to think it later...原创 2013-08-30 21:07:36 · 473 阅读 · 0 评论 -
i++ 和++i效率和重载问题
C++中++操作符重载问题检举|2011-05-19 06:26st_caonima5 | 分类:C/C++ | 浏览312次(1)CDate& operator ++ () CDate& operator ++ () {AddDays (1); return *this;} (2)CDate ope原创 2013-09-15 15:25:09 · 1075 阅读 · 0 评论 -
快速排序和查找第K的数
int Partion(int data[],int start,int end) { int key=data[start]; int i=start,j=end; while(i<j) { while(i=key) j--; if(i<j) data[i]=data[j]; while(i<j&&data[i]<=key) i++;原创 2013-10-18 23:00:36 · 510 阅读 · 0 评论