
算法
路过_斌斌
爱好编程
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
根据当前第几周,获取这一周的日期,(问题关键是获取该月份的第几天即可)
解决思路: 获取当前月份的第几天。在此程序中为了方便,我把12月份设置了32天,(大家可以修改一下,根据条件设置成31天,增加一下if条件即可) #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { // int iWeek,iMonth; i原创 2016-11-21 08:43:46 · 1684 阅读 · 0 评论 -
线性表的清空与线性表的销毁有什么区别 静态链表与数组的区别
线性表的清空: bool SqList::ClearList() { length=0; return true; }线性表的销毁:bool SqList::DestoryList() { delete []p; p=NULL; return true; }原创 2017-03-26 09:38:47 · 4917 阅读 · 0 评论 -
顺序链表
顺序存储链表原创 2017-03-26 22:44:40 · 477 阅读 · 0 评论