1. 经常变动的字符串要用 StringBuilder,然后每次变动用 append 方法。而不应该每次创建新的 String。2. 使用 static final 变量。3. It's reasonable to follow common object-oriented programming ...
分类:
移动开发 时间:
2014-07-01 20:10:32
阅读次数:
238
动态规划(Dynamic programming)是一种在数学、计算机科学和经济学中使用的,通过把原问题分解为相对简单的子问题的方式求解复杂问题的方法。 动态规划常常适用于有重叠子问题和最优子结构性质的问题,动态规划方法所耗时间往往远少于朴素解法。
动态规划背后的基本思想非常简单。大致上,若要解一个给定问题,我们需要解其不同部分(即子问题),再合并子问题的解以得出原问题的解。 通常许多子问题...
分类:
其他好文 时间:
2014-07-01 11:21:13
阅读次数:
293
参考:RPi Serial Connection本文来自:http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uartUsing the UARTIf you are running Ras...
分类:
Web程序 时间:
2014-07-01 10:21:01
阅读次数:
982
/*
* 备忘录模式
*/
#include
//保存值
class mySavevalue
{
public:
mySavevalue(string user_name = "",
int life_value = 100,
int magic_point = 100,
int rank_values =...
分类:
其他好文 时间:
2014-07-01 08:49:27
阅读次数:
203
In life we are happiest when 每个人从我们诞生的那一刻起,直到最后的终老死去,生命中的每一天都会有不同的经历——成功、失败、喜怒哀乐。而人们最渴望得到的不是物质,而是幸福。幸福就像上帝派来的信使,你永远不知道他什么时候会来,而又什么时候会离开。而它带给我们的却是串联成生命...
分类:
其他好文 时间:
2014-07-01 00:49:03
阅读次数:
341
Swift’s API includes many functions and instance methods that reflect its functional programming heritage. A prime example is calledreduce.You can red...
分类:
移动开发 时间:
2014-07-01 00:27:22
阅读次数:
329
Weekly golfers will find a bag that gives them enough space to do a lot of tees, balls, sticks, and whatever he deems necessary for the golf course. P...
分类:
其他好文 时间:
2014-06-30 20:52:39
阅读次数:
258
文章地址:http://ryantang.me/blog/2014/06/29/efficient-life/...
分类:
其他好文 时间:
2014-06-30 19:01:40
阅读次数:
157
MyBatis-Spring是MyBatis框架的子模块,用来提供与当前流行的依赖注入框架Spring的无缝集成。
Spring框架是一个基于依赖注入(Dependency Injection)和面向切面编程(Aspect Oriented Programming,AOP)的Java框架,鼓励使用基于POJO的编程模型。另外,Spring提供了声明式和编程式的事务管理能力,可以很大程度上...
分类:
编程语言 时间:
2014-06-30 17:41:39
阅读次数:
456
Qt学习笔记4-Widget布局管理以《C++ GUI Programming with Qt 4, Second Edition》为参考实例:查找对话框包含三个文件,finddialog.h,finddialog.cpp及main.cpp。//finddialog.h代码#ifndef FINDD...
分类:
其他好文 时间:
2014-06-30 15:06:41
阅读次数:
328