在我的程序员生涯中,悟出了以下的一个程序编码流程;期间也接触了很多其它的理论和想法,但是我还是觉得这是最适合我的。大致的样式是这样的:多思考(Think a bit)多编码(Code a bit)多测试(Test a bit)再来一遍(Go to Step 1)第一步:多思考有多少朋友会觉得,噼噼啪...
分类:
其他好文 时间:
2014-07-02 19:37:13
阅读次数:
183
The gray code is a binary numeral system where two successive values differ in only one bit.
分类:
其他好文 时间:
2014-07-02 14:47:43
阅读次数:
253
使用Xcode SVN 出现问题The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx(xxx是你SVN Server的地址)这里询问你是否允许这个地址的访问,...
分类:
其他好文 时间:
2014-07-02 13:59:06
阅读次数:
416
--1.数据类型不同。 --sql server 的数据类型:int ,smallint ,char,varchar,nchar,nvarchar,ntext,datetime,smalldatetime,money,decima, --float,bit…… --oracle ...
分类:
数据库 时间:
2014-07-01 22:59:14
阅读次数:
341
今天在自己的电脑上装了虚拟机,但在虚拟机里想装64位的win7,老是提示:Attempting to load a 64-bit application,however this cpu is not compatible with 64-bit mode在网上查过后,发现是电脑的Virtualiz...
分类:
其他好文 时间:
2014-07-01 22:34:52
阅读次数:
258
Mbps 即 Milionbit pro second(百万位每秒);Kbps 即 Kilobit pro second(千位每秒);bps 即 bit pro second(位每秒);速度单位,bit即比特,通常用b(小写)表示,指一位二进制位,Milionbit=1000Kilobit=1000...
分类:
其他好文 时间:
2014-07-01 19:47:36
阅读次数:
224
浮点型变量在计算机内存中占用4字节(Byte),即32-bit。遵循IEEE-754格式标准。一个浮点数由2部分组成:底数m 和 指数e。 ±mantissa × 2exponent(注意,公式中的mantissa 和 exponent使用二进制表示)底数部分 使用2进制数来表示此浮点数的实际值。指...
分类:
其他好文 时间:
2014-07-01 18:26:06
阅读次数:
199
在Java中一共有8种基本数据类型,其中有4种整型,2种浮点类型,1种用于表示Unicode编码的字符单元的字符类型和1种用于表示真值的boolean类型。(一个字节等于8个bit)1.整型类型 存储需求 bit数 取值范围 备注int 4字节 4*8short 2字节 2...
分类:
编程语言 时间:
2014-07-01 17:11:00
阅读次数:
350
Gray Code:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the ...
分类:
其他好文 时间:
2014-07-01 12:42:16
阅读次数:
192
一:软件设计的目标:是实现软件可维护,可扩展,可复用,灵活性好等功能。课本上通过活字印刷术讲述了面向对象编程的好处
二:例子:输入两个数和运算符来计算结果
将控制台输入和运算符运算分开实现即将业务层和界面逻辑分开,降低他们之间的耦合性。封装所有可能变化的部分。
Operation运算类
public class Operation
{
public ...
分类:
其他好文 时间:
2014-07-01 06:47:23
阅读次数:
252