﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Conding the future--acmercyj</title><link>http://www.cppblog.com/acmercyj/</link><description>常常将重点抛之脑后去写各种完善了...</description><language>zh-cn</language><lastBuildDate>Tue, 07 Apr 2026 22:56:38 GMT</lastBuildDate><pubDate>Tue, 07 Apr 2026 22:56:38 GMT</pubDate><ttl>60</ttl><item><title>周报  2012-07-22</title><link>http://www.cppblog.com/acmercyj/archive/2012/07/22/184636.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Sun, 22 Jul 2012 09:39:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/07/22/184636.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/184636.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/07/22/184636.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/184636.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/184636.html</trackback:ping><description><![CDATA[<h2><span style="font-family:黑体;">连连看的</span>A*<span style="font-family:黑体;">搜索</span> VS <span style="font-family:黑体;">深度优先搜索</span></h2>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">这周在测试连连看的时候发现了严重的搜索算法错误问题。原先我用的</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">只是比较两个节点的转弯次数，使用的</span>hash<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">标记就是遍历过的节点不能再走。但是在这样的情况下就不能保证走出正确的路径。如图</span>1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">所示。</span>S<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">为起点，</span>E<span style="font-family: 宋体; ">为终点，黑色表示墙壁。从</span>S<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">开始遍历的时候路径</span>1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">和</span>2<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">走到红色位置的转弯次数是相同的，然而在往下走一步</span>1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">就永远走不到终点了（转弯次数超过了两次）。所以这样的</span>hash<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">标记是行不通的。不能一棒子打死走过的地方就不让走。</span></p>  <p>&nbsp;</p>  <p align="center" style="text-align:center"><img src="http://www.cppblog.com/images/cppblog_com/acmercyj/1.jpg" width="141" height="189" alt="" /><br /></p>  <p align="center" style="text-align:center"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;"></span></p><div style="position: absolute; width: 104px; height: 104px; ">在这里输入文本</div>图 1.<p>&nbsp;</p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">既然设置了转弯次数，</span>hash<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">标记可以使用转弯次数来设定。如图</span>2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">所示。图中的数字表示从起点到该节点的转弯次数。在遍历的时候通过判断之前到达该节点的时候转弯次数是否大于等于当前节点的转弯次数。这样上面所说的路径</span>2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">就可以顺利通过红色位置。到了下一个节点通过判断路径</span>2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的转弯次数少于路径</span>1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">那么只需要保留路径</span>2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">走到终点即可。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">注意：此时已经没必要再用转弯次数作为</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">搜索的启发函数了。</span></p>  <p align="center" style="text-align:center"><img src="http://www.cppblog.com/images/cppblog_com/acmercyj/2.jpg" width="142" height="192" alt="" /><br /></p>  <p align="center" style="text-align:center"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">图</span> 2.</p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">虽然这样做避免了搜索不到终点的致命错误，但是效率上并不可观。因为遍历到某个点转弯次数相同的情况很多，所以这样的搜索带来了大量的不必要的遍历。后来我加了一个当前节点到终点的步数记录。将步数这个条件作为启发函数。这样做可以将最可能打到终点的节点优先搜索。效率有显著的提高。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">但是我又想用这</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">算法浪费了那么多的内存用来记录各种中间值，深搜的话会不会更加快。因为只要超过</span>2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">次转弯就不必继续遍历。于是我写了个深搜试了一下，的确比之前我个人认为已经不能再优化的</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">算法要快的多。当然我测试的地图是</span>15*15<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的，并且</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">算法搜索的路径还可以将步数控制在最短。而深搜的递归会大量调用函数堆栈。但是</span>&#8230;&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">在这个问题上</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的优势并没有体现出来，</span>1.<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">连连看是不管距离远近的</span> 2.<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">转弯次数不超过两次深搜的递归次数并不多。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">综上所述</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">可以解决大多数拥有各种条件的搜索问题，但是对于连连看的搜索在</span>15*15<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的地图规模下深搜的确优于</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，内存和时间都比较省，时间几乎每次都是</span>0<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">最后我保留了两个算法函数。可能有人会看不懂什么</span>A*<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">啊，什么启发式搜索啊，什么</span>hash&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。其实</span>A*<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">就是广搜加一个比较函数，那个比较函数就是启发函数，通过它来排列队列中节点的先后顺序决定哪些节点应该先搜索。上文提到的</span>hash<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">标记，即最简单的</span>hash<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。举个例子就是搜索地图的时候标记已走过的地方防止重复遍历。其实这些东西以前</span>ACM<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的时候都用过，一直到不知道专业名词</span>&#8230;.</p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">顺便提一下，杭电上的那道连连看数据太弱了，测试数据没有包含我以上提到的情况。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <h2><span style="font-family:黑体;">蛋疼的差事</span></h2>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">我表哥现在在浦江做婚纱摄影，叫我给他做个网站，为什么</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">为什么会这样。我真的不会做网站，但是第一次和他说的时候我说你要的那点屁功能随便写写就是了，你只要把图片资料什么的弄来就好了。结果他发给我一个</span>excel<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">写的都是写什么</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">居然还写了一个网址</span><a href="http://www.pjhssy.com/">www.pjhssy.com</a> <span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">我顿时无语，在他眼里这域名也是程序员写出来的。他的原话是这样的：反正你全部帮我搞定，写好了买什么空间什么的都弄好，除了买空间的钱你其他的想都别想（我还没想这事他倒是事先说明了，好像我欠他钱一样</span>- -<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">）。硬的不行他又说难道你忘了以前我在杭州的时候我是怎么对你的，每次来我这里玩都是热情接待，上厕所我都让你先去</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。还有一大堆切扁的废话，很无奈。</span></p>  <p>&nbsp;</p>  <h2><span style="font-family:黑体;">触动</span></h2>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">参观了几个同事的住处，房间惨不忍睹</span>&#8230;..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">人全部在玩游戏</span>&#8230;..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，两个用</span>iphone<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的同事房间就和卫生间一样大，只有一张床和一个放电脑的小桌子，衣服就挂在一根长度最多一米的木条上，</span>iphone<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">放在破桌子的隔层，这样的场景很不协调，感觉就像倾家荡产买了个手机</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。对于工作生活他们似乎没有目标，对于这份工作似乎并不是自己的兴趣，反而像读书是自己不得不做的事情。人生怎能如此无聊！</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">也看了我即将要搬进去的地方，一个字&#8220;大&#8221;，两个字&#8220;豪华&#8221;！哈哈，阳台、独立卫生间，</span>good<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span>650/<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">月</span>very good<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">既然要做这个行业绝对不能停止学习，绝对不能满足现状，不然仅仅在公司的框架上填空，毫无创造性一点激情也没有。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">我留在这里工作的目标，要自己写一个完完全全的网络游戏，可以很小，但是要包括多线程、数据库、安全性考虑等。游戏模块要尽可能多的使用</span>C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的特性，将书上看过但是没用过的东西都试试。到时候再换工作也不必要担心自己的能力问题。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">吃了晚饭之后走在学源街上，由于是暑假学生比较少，黄昏夕阳，安静的街道很美。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt"><img src="http://www.cppblog.com/images/cppblog_com/acmercyj/学源街.jpg" alt="" /><br /></p>  <p style="margin-left:336.0pt; text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:336.0pt; text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:336.0pt; text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">陈元杰</span></p>  <p style="margin-left:336.0pt; text-indent:21.0pt">2012/7/22</p><img src ="http://www.cppblog.com/acmercyj/aggbug/184636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-07-22 17:39 <a href="http://www.cppblog.com/acmercyj/archive/2012/07/22/184636.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-07-12</title><link>http://www.cppblog.com/acmercyj/archive/2012/07/12/183055.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 12 Jul 2012 13:40:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/07/12/183055.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/183055.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/07/12/183055.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/183055.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/183055.html</trackback:ping><description><![CDATA[<p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">本周事情比较多，先来个内容提要</span>^_^</p>  <p style="text-indent:21.0pt">1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">．</span>Python<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">连接</span>mysql<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">读取数据导入</span>excel</p>  <p style="text-indent:21.0pt">2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">．游戏断线重连处理</span></p>  <p style="text-indent:21.0pt">3<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">．读《</span>C/C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">高质量编程指南》第三版有感</span></p>  <p style="text-indent:21.0pt">4<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">．皮肤病看医师</span></p>  <p style="text-indent:21.0pt">5<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">．待续</span>&#8230;</p>  <h3><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">读《</span>C/C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">高质量编程指南》第三版有感</span></h3>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">先充第三点看是说本书的内容从编码规范讲到编译器底层处理给我等初学者开阔了在</span>C/C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">编程中的视野，适合做过一两个</span>C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">小项目的人看。个人比较推荐。然而这本书给我最大的冲击不是技术部分，而是最后十几页作者的大学十年经历</span>&#8230;.<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。在没见过电脑的适合爱上了编程，其中有一句话是这么记载的&#8220;我多么渴望拥有一台计算机，可以天天编程。如果挨一个巴掌能换取一分钟上机时间的话，我愿意每天挨</span>1440<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">个巴掌。&#8221;可见作者的爱有多深。后来写道&#8220;我终于有了一台</span>286<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">电脑，那个暑假我就睡在实验室里，时时刻刻守着它，深夜里我一个人冲着它笑，一会儿盖上布，一会儿掀开布，一会儿摸摸它的脸</span>&#8230;.<span style="font-family: 宋体; ">&#8221;。和很多技术上的痴迷者一样他在实验室奋斗的时候十分艰苦和拼命，但是不同的是他的经历写的如此轻松快乐，在那种高强度工作的压力下培养了和几个同学超越亲情的友情，又在某些特殊情况下和某几个女同学谈了传奇一般的恋爱。我里个擦啊，原来大学可以过的那么精彩。本人语文能力甚弱写不出细读那篇十年自传的切身感受，有兴趣的同学去网上查作者：林锐，应该能找到那个大学十年。我以后有小孩的话上大学之前必定要让他们先阅读此类文章，这样人的视野就不一样了。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">文末还说到&#8220;我相信生活、科学、艺术中的很多道理是相通的，于是就不嫌人笑，写下了十年来的故事&#8221;，&#8220;生活和工作要充满激情，否则你无法体会到淋漓尽致的欢乐与痛苦&#8221;。此言十分客观合理！关于第一句万物相通大家应该都有体会，任何事情要达到至高境界必定要修炼心智。第二句话简直道出了我为什么</span>20<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">多年都过的没有什么回忆的原因！没有全心全意、没有累到趴下又怎么会有刻骨铭心的快乐与痛苦的记忆。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <h3>Python<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">连接</span>mysql<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">读取数据导入</span>excel</h3>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">磊子真的是一个好同事好导师。本周他让我写一个程序用来统计游戏运营数据。这种任务我最喜欢了，即是学习的机会又可以以一个真正程序员的身份去写一个程序。结果就是在网上找了</span>python<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">连接</span>mysql<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的包和操作</span>excel<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的包快速搞定了（每次用</span>python<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">写东西的时候都要有一个念头：</span>life is short<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，</span>use python<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">），相对</span>java<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">优点就是代码精简、开发速度快！因为琐事就需要快速解决。周三的文化沙龙磊子又给我们上了一节信息量庞大的搜索算法课。介绍了几乎所有的搜索算法，还写了很多个例子模拟搜索过程讲解，用心良苦啊，仔细想想他做</span>acm <span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的时候是多么的精益求精。我在</span>acm<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的时候搜索题做的相对较多，但是听了磊子的讲解才发现自己只瞥见了泰山一角。</span></p>  <h3><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">游戏断线重连处理</span></h3>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">手机上的游戏难免因为信号不好造成断线，如果这样就算用户退出实在太坑爹了，所以一般都需要在用户重新连接的时候发生断线之前的情景以保持继续游戏。正因为如此在道具功能的实现部分造成了困难，假如用户在服务器发生道具效果的时候断线了，重新连上的时候就没有了道具的效果（因为为了数据同步道具的实现写在了客户端）。如果服务端再要求用户发送一次收到道具反馈那么又增加了通信压力，这是个难题</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span></p>  <h3><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">皮肤病看医师</span></h3>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">天气炎热手上长了小痘痘一样的东西，太阳晒到的时候刺痒，像痱子。去医院一位老医师为了情况之后我还补充了我有胆碱能性荨麻疹，医师笑道&#8220;你不说，老子也知道</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧&#8221;。然后让我做了一次过敏源检查，</span>255.5RMB<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，结果出来是对&#8220;屋尘螨&#8221;和&#8220;豚草&#8221;过敏。前者是容易滋生在空气湿度大的房间中的极小的肉眼看不见的螨虫（好恐怖囧）</span>&#8230;.<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。后者</span>google<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">了一下反正是一种植物</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧，医师说杭州很多</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧。后来配了一个疗程的中药</span>268.8RMB<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">（医师建议吃</span>4<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">个疗程</span>&#8230;<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">囧）。</span>255.5+268.8<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">一个月的试用工资又去了一半</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧。医师的谈吐还是比较和蔼的，建议：保证一天</span>8<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">小时以上睡眠？（比较困难）。吃清淡的食物</span>(<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">能做到，但是我爱辣椒</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧</span>)<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">。不要吃零食，（没问题）。生活一定要有规律，情绪要稳定，（生理期要稳定，哈哈）。荨麻疹啊，不治之症啊，之前以为网友经典的感慨是：与其想着怎么根治，还不如想着怎么与它友好相处</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">囧。人生就是如此，我对你好你也会以好回报。所以在这里也呼吁大家多关心一下自己的健康，它会给你回报的。</span></p>  <p style="text-indent:21.0pt"><img width="553" height="362" src="file:///C:/Users/cyj/AppData/Local/Temp/msohtml1/01/clip_image002.jpg" v:shapes="_x0000_i1025" alt="" /></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:336.0pt; text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">陈元杰</span></p>  <p style="margin-left:336.0pt; text-indent:21.0pt">2012/7/12</p><img src ="http://www.cppblog.com/acmercyj/aggbug/183055.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-07-12 21:40 <a href="http://www.cppblog.com/acmercyj/archive/2012/07/12/183055.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-07-08</title><link>http://www.cppblog.com/acmercyj/archive/2012/07/12/183052.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 12 Jul 2012 13:38:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/07/12/183052.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/183052.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/07/12/183052.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/183052.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/183052.html</trackback:ping><description><![CDATA[<p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">周六去了趟滨江，一方面为了不在炎热的天气下窝在房间</span>(<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">导致中暑</span>)<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，另一方面想多走走多接触一些。周日和高中同学瞎逛了一下，约在新华书店，拿了一本说搜索引擎的一本</span>C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">网络编程的，正当我兴趣浓厚想仔细看的时候，他说出去走走（麻痹，不看书要老子来新华书店！）。好吧，那就去走走吧，逛了下苹果专卖店，体验了科技和前卫</span>- -<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。路过经济开发区看在眼里的是大群大群的年轻打工者打扮上看去都是那种想把自己弄的很潮，但是让我感觉很挫的样子。我这边的话就是到处是学生，再相比</span>double<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">辉那边的感觉有家庭的工作者比较多，嗯，就是这种体会。傍晚了，下雨了，去地下商场吃了顿饭（对了这一路的饮料吃喝什么的都是同学买单的）。回到住处楼下的时候拖鞋破了（</span>double<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">辉你懂的，就是最后一次参加</span>ACM<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的前一夜农贸市场买的那双），走到垃圾桶面前直接脱了鞋子赤脚走了。一个老大爷看着乐了。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">上礼拜和老板谈了转正的问题，下个月应该就可以了。不过在谈的过程中我感觉老板的口才有点烂</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">大概说了两个点：</span></p>  <p style="text-indent:21.0pt">1<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">、工作和学习是两码事；</span></p>  <p style="text-indent:21.0pt">2<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">、自己给自己在公司的定位将会决定自己在公司的圈子（职位、权力）。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">对于第一点我自己有所领悟，老板的解释太罗嗦，我在这之前已有表示。我之前发布的一条微博，见图：</span></p>  <p style="text-indent:21.0pt"><img width="554" height="120" src="file:///C:/Users/cyj/AppData/Local/Temp/msohtml1/01/clip_image002.jpg" v:shapes="_x0000_i1025"  alt="" /></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">第二点我很明白他要表达的意思，就是你是不是全心全意的把企业的目标和理念当做自己的理想去追求，为何他要举那些很傻的例子来和我说好多遍（不解）。他有没有考虑过我既然选择这个方向怎么会不把企业的发展当回事，我一定会参与进来的，只要有机会。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">工作上，磊子让我休整了连连看和拱猪的编码规范，细节到空行行数也要保持一致。可能开始会觉得没必要，真的那么去做的时候整体看来代码的易读性真的有了很大的提高。拱猪的</span>BUG<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">都解决了，系统定时出牌与机器人定时出牌冲突的问题（服务端收到出牌请求判断一下即可），机器人极少情况下出牌导致程序崩溃的</span>BUG<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，机器人出牌选择上的条件转换逻辑错误。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">其中崩溃的原因是</span>for<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">循环中</span>i<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">写成</span>j<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">的错误，挺幼稚的。可能当时写的时候没睡醒。不过这都不是问题，不管自己有多清醒犯错是难免的，能最快的速度改之即可。那要怎么样才能快速的搞定这些粗心造成的但是又极其隐蔽的</span>BUG<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，似乎多加一些&#8220;断言&#8221;</span>---assert()<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">挺管用的。程序一旦遇到与断言中的条件不符的情况即会终止并指示到出错的地方，错误就马上暴露在面前了。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">由于对</span>C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">了解的比较少，磊子对一些我代码中的写法提出改善意见，并把他</span>07<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">年买的《</span>C/C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">高质量编程指南</span>.<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">第三版》借给我看，为了给点压力他还给了我一个看这本书的期限</span>--<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">两个礼拜。当时在说的时候我和同事都忍不住笑了，感觉像老师在布置家庭作业。良师益友，用心良苦。此书比电子版的多了很多内容，也说的更具体，比较受益，其实不做</span>C/C++<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">的看看也有蛮多收获的。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:336.0pt; text-indent:21.0pt"><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">陈元杰</span></p>  <p style="margin-left:336.0pt; text-indent:21.0pt">2012/7/8</p><img src ="http://www.cppblog.com/acmercyj/aggbug/183052.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-07-12 21:38 <a href="http://www.cppblog.com/acmercyj/archive/2012/07/12/183052.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-06-21</title><link>http://www.cppblog.com/acmercyj/archive/2012/06/21/179640.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 21 Jun 2012 12:47:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/06/21/179640.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/179640.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/06/21/179640.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/179640.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/179640.html</trackback:ping><description><![CDATA[<p style="font-family: Tahoma; "><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">上周没写周报，因为手头的工作没什么变化，</span>wb<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">项目也没进度。</span></p>  <p style="font-family: Tahoma; text-indent: 21pt; "><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">这半个月在工作上连连看游戏添加了各种道具功能，比如重列地图，首次尝试的时候用服务端实现重列再发生数据至客户端同步地图，但是这样的方法是不行的</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">在服务端重列的过程中，如果用户也在进行游戏操作，那么两边的数据就不统一了。后来道具的功能实现一致放在客户端实现，再由客户端发送数据和服务端同步。</span></p>  <p style="font-family: Tahoma; text-indent: 21pt; "><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">拱猪游戏机器人的</span>AI<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">一直没有思路，今天查了一些拱猪的技巧，挺有意思的。相对一般的牌类拱猪的特点在于&#8220;损人利己&#8221;</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。了解了一些出牌的策略后，写一个普通智力的机器人是可以了。但是我们的要求是可以控制胜率，说白了就是想赢就一定能赢！我想是否可以用以前黑白棋的算法搞定拱猪，理论上是完全可以的，但是不知会不会影响服务器的性能。实在不行就出阴招吧</span>..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">在发牌上做手脚</span>- -<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span></p>  <p style="font-family: Tahoma; text-indent: 21pt; ">Wb<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">项目在</span>sch<span style="font-family: 宋体;Times New Roman&quot;;Times New Roman&quot;">的个人能力下还是继续不紧不慢的前进着，目前我负责的模块相对来说比较简单也比较死板，不过我也挺适合这样的任务，不然会拖慢进度。在搁置一段时间之后再次上手碰到一些</span>2X<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">问题，问了很无辜的</span>sch<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，他表示很无奈，他让我成熟点，我说好的。</span>:(<span style="font-family:Wingdings;Times New Roman&quot;;Times New Roman&quot;;">J</span></p>  <p style="font-family: Tahoma; text-indent: 21pt; "><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">目前公司已有</span>10<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">几款左右游戏上线（或者即将）了，有斗牛、幸运五张、德州扑克、斗地主、<span style="color:red">一屁惊人</span>等。个人觉得一屁惊人比较有创意</span>..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">也挺搞笑的</span>..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">呵呵。另外我强烈的要求今年的计划完成之后做一些完全自主创意、设计、开发的游戏。比较不喜欢那种到哪里都能看见的游戏</span>&#8230;<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">很没创新咩。想玩的话可以去这里看看，推荐一屁惊人</span>..<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">地址：</span><a href="http://www.zhanglian.com/list.html">http://www.zhanglian.com/list.html</a><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">。</span><span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">一屁惊人是单机的，这个网址：</span><a href="http://www.mumayi.com/android-113618.html" style="font-family: verdana, 'courier new'; ">http://www.mumayi.com/android-113618.html</a></p>  <p style="font-family: Tahoma; text-indent: 21pt; "><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">说到运营上次磊子还要我写一个测试服务器性能的程序。也就写一个类，或者</span>dll<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">，可以得到服务器</span>CPU<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">、内存、网络、磁盘使用率，队列线程的数量，服务器队列作业长度等等。还是比较有意义的，估计是调用一些</span>API<span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">就可以了事的不知是否真的如此。</span></p>  <p style="font-family: Tahoma; text-indent: 21pt; ">&nbsp;</p>  <p style="font-family: Tahoma; text-indent: 21pt; ">&nbsp;</p>  <p style="font-family: Tahoma; text-indent: 21pt; ">&nbsp;</p>  <p style="font-family: Tahoma; text-indent: 21pt; ">&nbsp;</p>  <p style="font-family: Tahoma; text-indent: 21pt; ">&nbsp;<span style="font-family: 宋体; ">陈元杰</span></p><p style="font-family: Tahoma; text-indent: 21pt; ">2012/6/21</p><img src ="http://www.cppblog.com/acmercyj/aggbug/179640.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-06-21 20:47 <a href="http://www.cppblog.com/acmercyj/archive/2012/06/21/179640.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-06-08</title><link>http://www.cppblog.com/acmercyj/archive/2012/06/14/178836.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 14 Jun 2012 11:46:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/06/14/178836.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/178836.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/06/14/178836.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/178836.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/178836.html</trackback:ping><description><![CDATA[<p style="text-indent:21.0pt"><span style="font-family:宋体;">这星期不知道怎么来形容。看完了上次周报上提到的</span>pygame<span style="font-family:宋体;">教程，总体来说感觉很好，但是要掌握和熟悉那东西需要做一次中等程度的开发实践。暂时没有什么想法，也许可以参照教程里的恶搞版俄罗斯方块写一些更有创意的</span>level<span style="font-family:宋体;">。那个教程不错，作者也很用心，介绍</span>python<span style="font-family:宋体;">语言、</span>pygame<span style="font-family:宋体;">使用的同时更是把</span> AI<span style="font-family:宋体;">、状态机、向量、模拟物理、声音图像的存储和表示以简单的例子解释的浅显易懂受益匪浅。这里再贴一下地址博客地址：</span><a href="http://simple-is-better.com/news/361">http://simple-is-better.com/news/361</a></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">工作上在连连看之后继续了《拱猪》游戏的开发。规则比较多的牌类游戏。四人才能开始的游戏。客户端、服务端同时进行。</span>MFC<span style="font-family:宋体;">的客户端</span>&#8230;<span style="font-family:宋体;">劣质的框架和外观，每次测试要打开</span>4<span style="font-family:宋体;">个客户端，登陆四个账号，点四次准备，点一些游戏步骤直到到达我要测试的那一步。紧紧为了查看数据包有没有正确发送、接收可能就要调试浪费半小时。连续三天左右了，每次都让我头晕脑胀、筋骨打结，这些形容不是比喻，是切身体会，我经常折自己的手或者锤大腿来缓解&#8220;筋骨打结&#8221;的症状，可能这些和睡眠不足加上长时间保持一个动作也有关系。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">因此回到家里真的很无力，有一次看电影都头晕了，不知为何，这些天接触到的一些信息使得我有那么一点情绪低落。</span>sch<span style="font-family:宋体;">你应该能理解我在</span>acmwb<span style="font-family:宋体;">上进度比较慢，说实话我也时刻惦记这个项目。总之千万不要失去信心</span>&#8230;<span style="font-family:宋体;">慢了点，但是还是在前进的。回学校我会好好和</span>tjb<span style="font-family:宋体;">沟通，他也并不像我想象的那么不积极，有好几次他问我这么配置</span>eclipse&#8230;<span style="font-family:宋体;">这么排除那些编译报错</span>&#8230;.<span style="font-family:宋体;">你们现在的工作都是和网站有关系的，等我们把</span>tjb<span style="font-family:宋体;">引进来这个项目的进度会加快很多。</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:357.0pt"><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;陈元杰</span></p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012/06/08</p><img src ="http://www.cppblog.com/acmercyj/aggbug/178836.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-06-14 19:46 <a href="http://www.cppblog.com/acmercyj/archive/2012/06/14/178836.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-06-01</title><link>http://www.cppblog.com/acmercyj/archive/2012/06/14/178835.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 14 Jun 2012 11:45:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/06/14/178835.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/178835.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/06/14/178835.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/178835.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/178835.html</trackback:ping><description><![CDATA[<p style="text-indent:21.0pt"><span style="font-family:宋体;">这星期完成了连连看服务端、测试客户端仅游戏部分的功能。服务端的机器人只能消去图案。相对上学是写的连连看外挂，这回的机器人可谓是外挂中的外挂</span>&#8230;.<span style="font-family:宋体;">也就是尽量优化了广度优先搜索。也没什么牛叉之处，最大的困难其实是在测试客户端</span>MFC<span style="font-family:宋体;">上显示那</span>10*12<span style="font-family:宋体;">的图案。弄了半天才知道怎么显示的，显示之后由于重画图案导致测试客户端在移动的过程中十分卡</span>&#8230;<span style="font-family:宋体;">目前已做局部重画优化了一下。对于网络游戏的设计原理开发流程都有了比较清晰的了解。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">由于以后还会多次开发测试客户端来辅助自己开发服务端，</span>MFC<span style="font-family:宋体;">的东西我受够了，目前准备学习下</span>python <span style="font-family:宋体;">和</span> Pygame<span style="font-family:宋体;">。有兴趣的一起研究研究。今天安装了</span>python<span style="font-family:宋体;">和</span>pygame<span style="font-family:宋体;">写了一个不按常理出牌的</span>helloworld<span style="font-family:宋体;">见下图。</span></p>  <p style="text-indent: 21pt; "><img src="http://www.cppblog.com/images/cppblog_com/acmercyj/未命名.jpg" width="646" height="517" alt="" /><br /></p>  <p><span style="font-family:宋体;">下面贴两个我用来入门的网络教程：</span></p>  <p style="margin-left:18.0pt;text-indent:-18.0pt;">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Pygame <span style="font-family:宋体;">教程《用</span> Python <span style="font-family:宋体;">和</span> Pygame <span style="font-family:宋体;">写游戏</span> - <span style="font-family:宋体;">从入门到精通》</span></p>  <p><a href="http://simple-is-better.com/news/361">http://simple-is-better.com/news/361</a></p>  <p style="margin-left:18.0pt;text-indent:-18.0pt;">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>[<span style="font-family:宋体;">新手</span>]windows<span style="font-family:宋体;">下</span> python<span style="font-family:宋体;">的安装配置：</span></p>  <p><a href="http://pyclassroom.appspot.com/2009/08/16/python-setup-configure.html">http://pyclassroom.appspot.com/2009/08/16/python-setup-configure.html</a></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">今天从同事那得知一个强大的东西：<span style="color:red">网狐</span></span><span style="color:red">6.6</span><span style="font-family:宋体; color:red">完整源码</span><span style="color:red">+</span><span style="font-family:宋体; color:red">内核源码</span><span style="color:red">+105</span><span style="font-family:宋体; color:red">款游戏。</span><span style="font-family:宋体;">似乎是内部人员泄露出来的，一个很完整的可以运营的类似</span>QQ<span style="font-family:宋体;">游戏大厅的包。不过底层的东西其实还是没有完全开放的，可以学习、借鉴网络棋牌、对战类游戏开发的流程和逻辑，用这个东西做些其他事情还是不太合适，别人放了后门也说不定。现在网上还可以找到下载资源。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">另一方面</span>sch<span style="font-family:宋体;">已经将微博的开发引入正轨，昨天晚上本来是否疲劳了，躺一下都会神游的感觉，和</span>sch<span style="font-family:宋体;">、</span>tjb<span style="font-family:宋体;">交流并浏览了</span>sch<span style="font-family:宋体;">做的几个功能模块顿时又恢复了点精神，将微博表和评论表的数据库创建语句和</span>bean<span style="font-family:宋体;">类写了一下。我遇见的未来是我们拥有了一个自己的专业交流平台（</span>coding<span style="font-family:宋体;">微博</span>+<span style="font-family:宋体;">论坛</span>+<span style="font-family:宋体;">博客），然后我私下做的游戏都可以在上面发布。</span>Good.<span style="font-family:宋体;">看看我的</span>QQ<span style="font-family:宋体;">头像：教主湖中豪放饮酒，是潇洒？是寂寞？是霸气。一统江湖，指日可待！</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">&#9582;</span>(<span style="font-family:宋体;">&#9583;&#9661;&#9584;</span>)<span style="font-family:宋体;">&#9581;</span></p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:357.0pt"><span style="font-family:宋体;">陈元杰</span></p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012/06/01</p><img src ="http://www.cppblog.com/acmercyj/aggbug/178835.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-06-14 19:45 <a href="http://www.cppblog.com/acmercyj/archive/2012/06/14/178835.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-5-26</title><link>http://www.cppblog.com/acmercyj/archive/2012/06/14/178834.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 14 Jun 2012 11:42:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/06/14/178834.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/178834.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/06/14/178834.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/178834.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/178834.html</trackback:ping><description><![CDATA[<p><span style="font-family:宋体;">今天我能想到的我要做的事情。</span></p>  <p>1<span style="font-family:宋体;">：体验</span>linux<span style="font-family:宋体;">系统的简洁、高效、稳定。目前正在下载</span>Ubuntu<span style="font-family:宋体;">桌面版本。</span></p>  <p>2<span style="font-family:宋体;">：看完行尸走肉，目前看到第二季第七集。</span></p>  <p>3<span style="font-family:宋体;">：看盗墓笔记</span>8<span style="font-family:宋体;">，好久没看了，尽早了结之。</span></p>  <p>4<span style="font-family:宋体;">：写下微博的用户模块。</span></p>  <p>5<span style="font-family:宋体;">：了解下</span>MFC<span style="font-family:宋体;">图片控件的使用，以便上班的时候可以快速完成连连看测试客户端开发。</span></p>  <p>&nbsp;</p>  <p><span style="font-family:宋体;">之所以想真正的体验一把</span>linux<span style="font-family:宋体;">是因为之前有过这样的接触，但是没有深入。并且</span>linux<span style="font-family:宋体;">编程对我而言就像是一件很神秘的事情。今天我觉得我有必要去了解一下。给网上一个不认识的人发了封邮件。问了他为什么要在</span>linux<span style="font-family:宋体;">，加上我的理解，又要从何开始。</span></p>  <p><span style="font-family:宋体;">他的回复：</span></p>  <p style="text-indent:21.0pt"><em><span style="font-family:宋体;color:navy">你好</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">在</span><span style="color:navy">linux</span></em><em><span style="font-family:宋体; color:navy">下能学到更多底层的东西这个我没有体验</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">我虽然用</span><span style="color:navy">linux, </span></em><em><span style="font-family:宋体; color:navy">但是对系统底层并不关心</span><span style="color:navy">,</span></em><em><span style="font-family:宋体;color:navy">因为我只是用</span><span style="color:navy">python</span></em><em><span style="font-family:宋体;color:navy">搞</span><span style="color:navy">web</span></em><em><span style="font-family:宋体;color:navy">开发而已</span><span style="color:navy">.&nbsp;&nbsp; </span></em></p>  <p style="text-indent:21.0pt"><em><span style="font-family:宋体;color:navy">不过在</span><span style="color:navy">linux</span></em><em><span style="font-family:宋体;color:navy">下的</span><span style="color:navy">c</span></em><em><span style="font-family:宋体; color:navy">语言开发应该能通过</span><span style="color:navy">c</span></em><em><span style="font-family:宋体;color:navy">语言了解系统底层的知识</span><span style="color:navy">.</span></em><em><span style="font-family:宋体; color:navy">我之所以用</span><span style="color:navy">linux, </span></em><em><span style="font-family:宋体;color:navy">主要就是</span><span style="color:navy">windows</span></em><em><span style="font-family:宋体; color:navy">太难用了</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">效率低下</span><span style="color:navy">, </span></em><em><span style="font-family:宋体; color:navy">仅此而已</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">这就是优点吧</span><span style="color:navy">, </span></em><em><span style="font-family:宋体; color:navy">我用的是</span><span style="color:navy">debian</span></em><em><span style="font-family:宋体;color:navy">版本</span><span style="color:navy">,</span></em></p>  <p><em><span style="font-family:宋体; color:navy">如果你刚开始用的话</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">可以接触一下</span><span style="color:navy">ubuntu</span></em><em><span style="font-family:宋体;color:navy">对于桌面程序的话我不太了解</span><span style="color:navy">, c</span></em><em><span style="font-family:宋体;color:navy">语言系列的也很少接触</span><span style="color:navy">, </span></em><em><span style="font-family:宋体; color:navy">所以我只能站在我的角度来给你解释了</span><span style="color:navy">,</span></em><em><span style="font-family:宋体;color:navy">我觉得</span><span style="color:navy">linux</span></em><em><span style="font-family:宋体; color:navy">下做开发最终要的好处就是事情变得简单了</span><span style="color:navy">, </span></em><em><span style="font-family:宋体;color:navy">比如在</span><span style="color:navy">debian</span></em><em><span style="font-family:宋体; color:navy">下安装</span><span style="color:navy">mysql</span></em><em><span style="font-family:宋体;color:navy">只需要打这么一句话</span><span style="color:navy">&nbsp; sudo apt-get install mysql </span></em><em><span style="font-family:宋体; color:navy">而这在</span><span style="color:navy">windows</span></em><em><span style="font-family:宋体;color:navy">下需要很多步骤</span><span style="color:navy">.</span></em></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">经过我自己的了解和他的体会，我觉得这件事情还是挺有必要去纠结一番。</span></p>  <p style="text-indent:21.0pt">12:35</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">这一天快要过去了。</span></p>  <p style="text-indent:21.0pt">1<span style="font-family:宋体;">：</span>Ubuntu<span style="font-family:宋体;">的探索止于电脑内存不足。错误安装了两次服务版，后正确安装了桌面版，最终</span>2G<span style="font-family:宋体;">的电脑内存被</span>WIN7<span style="font-family:宋体;">占了</span>1.25G<span style="font-family:宋体;">，卡的很，实在没办法搞下去了。</span></p>  <p style="text-indent:21.0pt">2<span style="font-family:宋体;">：行尸走肉看完了</span></p>  <p style="text-indent:21.0pt">3<span style="font-family:宋体;">：在找青雪讲故事，我要听小说</span>- -</p>  <p style="text-indent:21.0pt">4<span style="font-family:宋体;">：建立了用户基本表，想看看另一位老兄有无意见或者建议。</span></p>  <p style="text-indent:21.0pt">5<span style="font-family:宋体;">：还没碰过</span>..<span style="font-family:宋体;">过会儿看下书，看能不能找到类似相关内容。</span></p>  <p style="text-indent:21.0pt">22:26</p>  <p style="text-indent:21.0pt">&nbsp;</p>  <p style="margin-left:357.0pt"><span style="font-family:宋体;">陈元杰</span></p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012/5/26</p><img src ="http://www.cppblog.com/acmercyj/aggbug/178834.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-06-14 19:42 <a href="http://www.cppblog.com/acmercyj/archive/2012/06/14/178834.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>周报  2012-5-21</title><link>http://www.cppblog.com/acmercyj/archive/2012/06/14/178833.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Thu, 14 Jun 2012 11:41:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/06/14/178833.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/178833.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/06/14/178833.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/178833.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/178833.html</trackback:ping><description><![CDATA[<p style="text-indent:21.0pt"><span style="font-family:宋体;">目前除了工作没有太多其他的麻烦事了，工作上在做一个测试客户端与之前编写的游戏服务端交互测试完善。也借此机会深入了解服务端、客户端两个方面的游戏框架。下班一般在家里看<u>《深入浅出</u></span><u>MFC</u><u><span style="font-family:宋体;">第二版》，</span></u><span style="font-family: 宋体;">和以前玩游戏的感觉差不多。记得蔡老师和我们说过工作之后工资到</span>10W<span style="font-family:宋体;">以上了和他回报一下。我想把记录工资的模块写到交流平台里，目前暂时记在<strong>工资记录</strong>中。</span><strong></strong></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">做技术的掌握的知识和技术是最大的、无形的财富。我们需要记录生活中每一个前进的动作，每一次转折。更重要的是我们有必要和身边的人分享，去了解身边人的动态。我感觉做到这样我们就能搭建一个很好的环境了。我和沈晨辉做<strong><em>微博</em></strong></span><strong><em>+</em></strong><strong><em><span style="font-family:宋体;">论坛</span>+</em></strong><strong><em><span style="font-family:宋体;">博客</span></em></strong><span style="font-family:宋体;">就是这个目的。网上有很好的平台但是他们的领域不够专业、或者太专业、或者刚刚好但是给人一种触摸不到的感觉<span style="color:red">，<strong>因此做一个平台以我们为核心扩展起来，我们会有一种责任感逼迫自己在一天中任何情况下抽出不用很多的时间去维护这个环境。</strong></span>真的不用很多时间我们需要的是持久性，各位试一试将空闲时间用来看技术书籍、编写代码，并将这些过程和身边的人分享，这是一种娱乐，却可以让我们到达事业的巅峰。</span></p>  <p style="text-indent:21.0pt"><span style="font-family:宋体;">为了完成这个愿景，目前首要任务就是完成那个平台。我会尽我所能去配合辉辉。</span></p>  <p style="text-indent:21.0pt"><strong><span style="font-family:宋体;">提一点意见，我觉得</span>QQ</strong><strong><span style="font-family:宋体;">这种工具根本没办法让我们很好的交流，我强烈觉得群内或者不在群内的一些朋友内心也有上述的愿景，但是没有沟通凝聚不到一起。我想我们可以搞一个</span>YY</strong><strong><span style="font-family:宋体;">频道，每周以文化沙龙的方式大家做一些交流。如果准备做一个项目也可以开一个子频道和小组成员沟通讨论安排任务。</span></strong></p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>  <p>&nbsp;</p>  <p style="margin-left:357.0pt"><span style="font-family:宋体;">陈元杰</span></p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012/5/21</p><img src ="http://www.cppblog.com/acmercyj/aggbug/178833.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-06-14 19:41 <a href="http://www.cppblog.com/acmercyj/archive/2012/06/14/178833.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>实习两周</title><link>http://www.cppblog.com/acmercyj/archive/2012/03/19/168343.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Mon, 19 Mar 2012 13:23:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/03/19/168343.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/168343.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/03/19/168343.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/168343.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/168343.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;在客户端做了一个计算器，作为熟悉控件的项目，在程序逻辑上花了更大的功夫。简单的程序因为没有写过代码篇幅长的东西 导致写的过程不是那么顺利。虽然最终完成了所有要求，但是在代码的规范上面做的不到位，2000多行的代码至少有500行是重复的。对于我来说完全没有体会到面向对象的概念，还是停留在面向过程上。<br />&nbsp;&nbsp;&nbsp;转入服务端，第一个实习项目是模拟sars的传播统计多项数据。在来到服务端最面向的改变是可以把控件、界面这些和程序功能关系不大的东西抛开，但是在程序的功能、算法、效率上面要做的更加精益求精。现阶段首要的目的是系统的学一遍C++。因为对一些规则和语法的不完全了解，导致做了5天的sars模拟程序违背了我的想法。后来利用周末重新整理编写了一个。虽然也满足要求了，但是那不分public和private的成员变量，main函数内累赘的代码，类以外的大量函数，方法、函数功能的不单一等等地方都让我感觉自己需要改进的地方太多了。<br />&nbsp;&nbsp;&nbsp;转过来一周之后的感觉是在客户端我写了一天的代码下班回家可以毫无牵挂，周末可以出去玩。但是来服务端之后我总感觉自己在各个方面的知识都很缺乏，我每天都会去看以前懒得看或者想看却望而生畏的书籍、算法。这种感觉很好。接下来是做一个棋牌类游戏，要求有AI算法和电脑游戏。很有挑战性，下午我在看有关博弈和AI的算法资料不知不觉就下班了，时间过得好快，回家我打算看100页左右的C++ Primer，然后继续看那本《PC 游戏编程-人机博弈》。<img src ="http://www.cppblog.com/acmercyj/aggbug/168343.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-03-19 21:23 <a href="http://www.cppblog.com/acmercyj/archive/2012/03/19/168343.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>公司接受我，对加入服务端的请求</title><link>http://www.cppblog.com/acmercyj/archive/2012/03/12/167732.html</link><dc:creator>mr_chen</dc:creator><author>mr_chen</author><pubDate>Mon, 12 Mar 2012 11:58:00 GMT</pubDate><guid>http://www.cppblog.com/acmercyj/archive/2012/03/12/167732.html</guid><wfw:comment>http://www.cppblog.com/acmercyj/comments/167732.html</wfw:comment><comments>http://www.cppblog.com/acmercyj/archive/2012/03/12/167732.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/acmercyj/comments/commentRss/167732.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/acmercyj/services/trackbacks/167732.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;前一天做了去服务端的笔试题，在粗略的查看题目之后觉得很多概念不懂或者已经忘记了，我又考虑到我现在是否适合去参加服务端的工作，是否应该现在客户端熟悉一段时间。所以我中途提出还是先留在客户端这边培训。但是负责人建议我先把题目认真做了，因此我还是重新审题尽量把知道的都写上了。<br />&nbsp;&nbsp;&nbsp;今天负责人找我谈话，也给我看了我做的笔试题，写过的地方基本上都有得分，所我挺有潜力，也看得出在对算法方面蛮有兴趣。但是也指出了我AQ方面的不足，也就是在压力面前容易退缩。并且笔试题上的一些算法知识比如说计算时间复杂度，算法的优化等 做的比较差。如果是真的喜欢算法不至于是这样的情况。希望我能够再提升一下，另外需要系统的学习C++。然后居然说要我选择去服务端培训还是留在客户端培训，如果去服务端培训失败，那就意味着我会被淘汰没有任何余地。<br />我选择了去服务端，当天就搬了办公室，我很开心、很激动。谢谢你们给我的这次机会，我会好好努力。<br />1、坚决把分配到的工作做好（完成）、做细（规范）、做精（深入）。<br />2、始终保持学习的积极性<img src ="http://www.cppblog.com/acmercyj/aggbug/167732.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/acmercyj/" target="_blank">mr_chen</a> 2012-03-12 19:58 <a href="http://www.cppblog.com/acmercyj/archive/2012/03/12/167732.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>