原文出处 long 和 int 范围是[-2^31,2^31),即-2147483648~2147483647. 而unsigned范围是[0,2^32),即0~4294967295.也就是说,常规的32位整数只能够处理40亿以下的数.那遇到比40亿要大的数怎么办呢?这时就要用到C++的64位扩展了.不同的编译器对64位整数的扩展有所不同.基于ACM的需要,下面仅介绍VC6.0与g++编译器的扩展.VC的64位整数分别叫做__int64与unsigned __int64,其范围分别是[-2^63
小票打印就是向打印设备发送控制打印格式的指令集,而这些打印格式须要去查询相应打印机的API文档,这里我把经常使用的api给封装了一下 文字对齐方式 打印字体大小 字体是否加粗 打印二维码 打印条形码 切纸 打开钱箱 字符串转字节数组 字符拼接 PrintFormatUtils.java /** * 打印格式 * Created by john on 17-3-23. */ public class PrintFormatUtils { // 对齐方式 public static final in
print 函数的打印格式: ##no quote print out > x <- letters[1:5] > print(x,quote=F,);print(x,quote=T) [1] a b c d e [1] "a" "b" "c" "d" "e" ##print without number of vector and quote > cat(x) a b c d e
检查lighttpd打印的日志时,有些字段意义模糊,就找了个对照说明,备份一下 原文地址:http://redmine.lighttpd.net/projects/1/wiki/Docs_ModAccesslog Option Description %% a percent sign %h name or address of remote-host %l ident name (not supported) %u authenticated user %t timestamp of the