摘要: <?xml version="1.0"?><!-- charts/VerticalLineChart.mxml --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <!--[CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection=new ArrayCollection([{Mon 阅读全文
posted @ 2009-12-31 14:45 zhwj184 阅读(129) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()" backgroundColor="#d6d4d4" backgroundGradientColors="[#FFFFFF, #FFFFFF]"> &l 阅读全文
posted @ 2009-12-31 14:42 zhwj184 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0"?><!-- charts/MemoryGraph.mxml --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initTimer()"> <mx:Script> <!--[CDATA[ import flash.utils.Timer; import flash.events.TimerEvent; import mx.collections.Ar 阅读全文
posted @ 2009-12-31 14:39 zhwj184 阅读(126) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()" backgroundColor="#FFFFFF"> <mx:Canvas id="paper" x="30" y=&quo 阅读全文
posted @ 2009-12-24 15:08 zhwj184 阅读(297) 评论(0) 推荐(0) 编辑
摘要: <img src="http://p.blog.csdn.net/images/p_blog_csdn_net/zhongweijian/EntryImages/20091221/1.jpg" mce_src="http://p.blog.csdn.net/images/p_blog_csdn_net/zhongweijian/EntryImages/20091221/1.jpg"/><span id="__caret">_</span><?xml version="1.0" 阅读全文
posted @ 2009-12-21 12:57 zhwj184 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ibatis 的dynamic这样写会有问题,如果有条件成立,出现where 后面会少一个and,这是因为ibatis的dynamic语句会默认把第一个条件成立的predend字段去掉,比如如果下面两个条件都成立,那么最终的语句会变成where status=status的值 and name=name的值,where<dynamic prepend=" "> <isNotEmpty prepend="and" property="status"> status = #status# </isNotEmp 阅读全文
posted @ 2009-12-09 21:04 zhwj184 阅读(206) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3504C代表有几个字母,每一行输入的16进制是每个字母的显示,每个字母有7行5列,每一行输入的5个16进制数,每个二进制数对应显示的每一列,取每个16进制数的二进制表示的后7位,如果该位为1,则显示'#',否则显示为空格。比如第一个case的第一列7F 08 08 08 7F是字母H的显示,H有7行5列,7F的二进制表示为01111111,后面7位为1,则相应的字母显示的第一列显示为'#######'。注意,每行有6C*1个字符,是字母之间要用 阅读全文
posted @ 2009-12-05 19:27 zhwj184 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3220简单题,好久没写c++代码了,练习zoj,也学习c++.#include <iostream>#include <cmath>using namespace std;const int ROW = 8;const int COLUMN = 6;char abacus[ROW][COLUMN];int main(){ int cas; cin >> cas; int start; int end; int sum; while(cas- 阅读全文
posted @ 2009-12-05 18:29 zhwj184 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <cmath>using namespace std;const int SIZE = 100;int map[SIZE][SIZE];struct{ int min; int max; char direction;}step[SIZE];int n;int m;int stepSize ;int isOk;void swap(int &a, int &b){ int t = b; b = a; a = t;}bool canGo(int sx, int sy, int ex, int ey){ 阅读全文
posted @ 2009-12-05 14:43 zhwj184 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public static void getSysProp(){ Properties props = System.getProperties(); Set<Entry<Object,Object>> res = props.entrySet(); Iterator it = res.iterator(); while (it.hasNext()) { Map.Entry e = (Map.Entry)it.next(); System.out... 阅读全文
posted @ 2009-12-02 16:44 zhwj184 阅读(229) 评论(0) 推荐(0) 编辑