摘要: 搜索查询日期间隔的方法的时候,找到tm类。这个类可以实现简单的日期计算,比如设置好年月日就能从tm_wday知道是星期几。structtm{inttm_sec;/*secondsaftertheminute-[0,59]*/inttm_min;/*minutesafterthehour-[0,59]... 阅读全文
posted @ 2013-07-02 21:20 little_hsu 阅读(888) 评论(0) 推荐(0) 编辑
摘要: //代码比较长,好在逻辑比较清晰吧//调bug调了挺久,错在 我直接返回false,未回撤对visit的修改。因为在当前情况下不可行,不代表其他深搜路劲不行#include #include #include using std::sort;using std::memset;int n;const... 阅读全文
posted @ 2013-07-02 20:18 little_hsu 阅读(287) 评论(0) 推荐(0) 编辑