题目:Haab日历和Tzolkin日历的转换。 Maya一种有两种日历,第一种日历名为Haab,将一年分为365天,一共有19个月。其中前18个月,分别命名为pop、nozip、zotz、tzec、xul、yoxkin、mol、chen、yax、zac、ceh、mac、kankin、muan、p.....
分类:
其他好文 时间:
2015-11-28 16:45:58
阅读次数:
216
java开发邮件服务器的接收模块用java建立socket服务端,监听端口25,实现SMTP协议。即可完成邮件服务器的接收模块。这里要注意的是,SMTP协议其实可以分为两种。一种是你用手机、PC等客户端发邮件到邮件服务商的服务器的时候用的SMTP协议,这一类是需要登录验证的。一种是邮件服务商之间传递...
分类:
编程语言 时间:
2015-11-27 21:50:08
阅读次数:
237
前言废话:很早之前就打算写博客,但是一直因为在创业,抽不出时间。如今朝九晚五,打算利用晚上的时间,开始写博客。本类博客是一个系列,将完整的讲述纯手工开发一个邮件服务器的过程,并附有关键代码。演示地址 作者邮箱: longge93@cliyun.com这一篇先说整个系统的架构。邮箱系统主要分为几个模块...
分类:
编程语言 时间:
2015-11-27 21:43:20
阅读次数:
154
题目:Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in fron...
分类:
其他好文 时间:
2015-11-27 14:36:37
阅读次数:
129
俩stack模拟queue,每次往第一个里面push,要pop的时候pop第二个,如果第二个为空,先把第一个的都放到第二个里面,再pop第二个。平均下来每个数据的时间复杂度为o(1)class MyQueue { // Push element x to the back of queue. ...
分类:
其他好文 时间:
2015-11-27 06:45:50
阅读次数:
161
系统的导航栏UINavigationBar改背景、按钮、图标什么的,很难改成自己想要的样子。为何非要改系统的那个呢?隐藏掉系统的Bar,自己不就可以自由的自定义图片、按钮、背景了吗,然后使用push,pop切换页面。//隐藏系统的导航栏UINavigationBar[self.navigationC...
分类:
其他好文 时间:
2015-11-25 23:44:28
阅读次数:
366
2.在App中,选中某个内容,可以使用peek(轻按)进行预览或者使用pop(重按)切换控制器,ians完整内容peek:轻按,预览。3种状态:peek可用,按中格浮现出来,其他的变模糊。peek,可以快速预览接下来的controller内容Peek+PreviewAction,快捷操作pop:一般...
分类:
移动开发 时间:
2015-11-25 23:21:48
阅读次数:
529
#include #include using namespace std;int main(){ stack s; s.push(1); s.push(2); s.push(3); printf("%d\n", s.top()); s.pop(); printf("%d\n", s.top());...
分类:
其他好文 时间:
2015-11-24 23:40:31
阅读次数:
276
LeetCode 232 Implement Queue using Stacksclass Queue { stack input, output;public: void push(int x) { input.push(x); } void pop(voi...
分类:
其他好文 时间:
2015-11-23 10:07:54
阅读次数:
180
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-11-22 23:28:05
阅读次数:
195