摘要: #include #include #include #include #include #include #include using namespace std;#define FOR(i,s,t) for (int i = s; i max_n) { max_c = i; max_n = _l[i]; _t = -1; } FOR (i, 0, 12) if (_h[i] > max_n) { max_c = i; max_n = _h[i]; _t = 1; } printf("%c ... 阅读全文
posted @ 2013-07-20 17:00 alex4814 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 在Terminal中输入openssl sha1 [filename]效果如下 阅读全文
posted @ 2013-05-10 09:55 alex4814 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Mac OS X 10.8.3下MacTeX 2012(TeXLive-2012)CTeX包提供了较为完善的中文支持,排版的方案(例如段落缩进)也符合中国人的习惯。具体请见http://www.ctex.org首先得确保你的系统中有你想要的字体,这在Font Book里可以查找,没有的话下载完字体后添加。打开Terminal,输入命令修改配置文件。sudo vim /usr/local/texlive/2012/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def没有vim的可以用其它的编辑器(一般用LaTeX的人都不会有问题吧)。 阅读全文
posted @ 2013-04-20 01:01 alex4814 阅读(13003) 评论(0) 推荐(0) 编辑
摘要: 一些命令(\footnote 或\phantom)内嵌于\caption 或\section时会失效,这时加上\protect可以保证不失效。\section{Higer Order Difference Equations \footnote{See James(2000)}} %\footnote失效\section{Higer Order Difference Equations \protect\footnote{See James(2000)}}注意\protect只保护紧跟其后的命令本身,命令的参数并不受到保护,如果要保护参数,需要在参数前加\protect。 阅读全文
posted @ 2013-03-23 11:48 alex4814 阅读(3819) 评论(1) 推荐(1) 编辑
摘要: \XeTeXlinebreaklocale "zh"\XeTeXlinebreakskip = 0pt plus 1pt在文档头加上这两句就行了。 阅读全文
posted @ 2013-03-22 15:45 alex4814 阅读(1993) 评论(0) 推荐(1) 编辑
摘要: 在vimrc文件中加入以下两句即可1 let &termencoding=&encoding2 set fileencodings=utf-8,gbk更详细的vim编码了解请点这里 阅读全文
posted @ 2013-03-16 10:40 alex4814 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 在我自己使用的过程中,发现左上角出现了E但是还是上不了网。解决方法如下:Settings->General->Cellular,把Cellular Data打开,然后在下面进入Cellular Data Network进行设置在Cellular Data中的APN填写cmnet,其余空。至此保存退出应该即可上网。以下是彩信的设置方法,就在Cellular Data下方的MMS。在MMS中的APN填写cmwap,MMSC填写mmsc.moternet.com,MMS Proxy填写10.0.0.172,MMS Max Message Size填写102400,这样就全部设置完成了。 阅读全文
posted @ 2013-02-25 12:59 alex4814 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <%# Container.ItemIndex+1%>或者<%# this.Datalist1.Items.Count + 1%>可用在论坛的楼层上。 阅读全文
posted @ 2012-06-21 15:30 alex4814 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ZOJ:[AC]1575 Koch Curve[AC]1010 Area1565 Input1081 Points Within1165 Laser Lines1248 Video Surveillance 1299 Pendulum 1090 The Circumference of the Circle 1271 Doing Windows 1280 Intersecting Lines 1296 Stars 1030 Farmland 1041 Tran... 阅读全文
posted @ 2012-04-05 22:44 alex4814 阅读(244) 评论(0) 推荐(0) 编辑
摘要: waiting... 阅读全文
posted @ 2012-03-28 14:36 alex4814 阅读(242) 评论(0) 推荐(0) 编辑