摘要: A Different TaskThe (Three peg) Tower of Hanoi problem is a popular one in computer science. Briefly the problem is to transfer all the disks from peg... 阅读全文
posted @ 2014-08-04 23:19 龚细军 阅读(204) 评论(0) 推荐(0)
摘要: Problem HHelp is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned fo... 阅读全文
posted @ 2014-08-04 22:57 龚细军 阅读(295) 评论(0) 推荐(0)
摘要: DEven ParityInput:Standard InputOutput:Standard OutputWe have a grid of sizeNxN. Each cell of the grid initially contains a zero(0) or a one(1).Thepar... 阅读全文
posted @ 2014-08-04 22:36 龚细军 阅读(345) 评论(0) 推荐(0)
摘要: java程序中可以允许存在多个线程,但在处理多线程问题时,必须注意这样一个问题: 当两个或多个线程同时访问同一个变量,并且一些线程需要修改这个变量时,那么这个程序是该如何执行? 也就是先访问这个变量还是先修改这个变量. 在学习线程的这段时间里,我也一直被这个问... 阅读全文
posted @ 2014-08-04 17:36 龚细军 阅读(317) 评论(0) 推荐(0)
摘要: WinMain函数1、句柄(HANDLE):{1.定义:资源的标识2.句柄的作用:操作系统通过句柄来找到对应的资源,从而对这些资源进行管理和操作。3句柄的分类:(按资源){ 1.图标句柄(HICON), 2.光标句柄(HCURSOR), 3.窗口句柄(HW... 阅读全文
posted @ 2014-08-04 13:48 龚细军 阅读(608) 评论(0) 推荐(0)