diff options
Diffstat (limited to 'src/List.cpp')
-rw-r--r-- | src/List.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/List.cpp b/src/List.cpp index b4600bc..67af9ce 100644 --- a/src/List.cpp +++ b/src/List.cpp | |||
@@ -1,4 +1,5 @@ | |||
1 | #include "calendar.h" | 1 | #include "calendar.h" |
2 | #include <cstdio> | ||
2 | 3 | ||
3 | List::List() { | 4 | List::List() { |
4 | // 为方便初始化,链表头结点设为空节点,注意不要使用 | 5 | // 为方便初始化,链表头结点设为空节点,注意不要使用 |
@@ -116,8 +117,12 @@ void List::Run() { | |||
116 | int i = 0, j = 0; | 117 | int i = 0, j = 0; |
117 | int mon_index = 11; | 118 | int mon_index = 11; |
118 | bool flag; | 119 | bool flag; |
119 | while (later(zhongqi_vec[12], shuori_vec[i])) { | 120 | point *p = head->next->next; |
120 | i++; | 121 | |
122 | while (!(p->isZhongqi && p->JieqiIndex == 24)) { | ||
123 | if (p->isShuo) | ||
124 | i++; | ||
125 | p = p->next; | ||
121 | } | 126 | } |
122 | 127 | ||
123 | if (i == 13) { | 128 | if (i == 13) { |