sscanf和sprintf是scanf和printf家族用法sscanf和sprintf是scanf和printf家族的一对成员,用于处理和分析字符串非常强大得两个函数头文件 stdio.h原型int sscanf(const char *buffer,const char *format,......
分类:
其他好文 时间:
2014-07-16 22:59:38
阅读次数:
200
错误Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedFailed to ...
分类:
移动开发 时间:
2014-07-16 22:58:26
阅读次数:
234
C#格式化数值结果表字符说明示例输出C货币string.Format("{0:C3}", 2)$2.000D十进制string.Format("{0:D3}", 2)002E科学计数法1.20E+0011.20E+001G常规string.Format("{0:G}", 2)2N用分号隔开的数字st...
分类:
其他好文 时间:
2014-07-12 09:12:03
阅读次数:
185
在做依据日期来检索的时候普通的格式化会出错,试了好多种仅仅有一种可行SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");String time = "lostTime:["+sdf.format(new Da...
分类:
其他好文 时间:
2014-07-12 08:32:03
阅读次数:
164
1、Shell$ExitCodeException
现象:运行hadoop job时出现如下异常:
14/07/09 14:42:50 INFO mapreduce.Job: Task Id : attempt_1404886826875_0007_m_000000_1, Status : FAILED
Exception from container-launch: org.apache....
分类:
其他好文 时间:
2014-07-11 00:24:58
阅读次数:
355
摘要:
这是Android4.3Mms源码中的strings.xml的一段代码:
%1$smessages per conversation
在这里google的工程师们使用了标签,这个标签主要在动态插入内容时候使用,有点类似于占位符的作用。这里我们简单介绍一下。
简介:
xliff是XML Localization Interchange File Format的缩写,...
分类:
其他好文 时间:
2014-07-10 23:36:08
阅读次数:
324
今天写一个简单的socket网络通讯的程序的时候,用ctrl+c结束服务器端程序之后,再次启动服务器出现了bind failed:the address already in use的错误。在网上查了一下以后找到了原因,在此记录一下。这个IBM的官网上说到了这一点:http://www.ibm.com/developerworks/cn/linux/l-sockpit/。详细介绍如下:
...
分类:
系统相关 时间:
2014-07-10 21:30:27
阅读次数:
806
错误例子:error: command 'cc' failed with exit status 1clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard err...
分类:
其他好文 时间:
2014-07-10 19:30:11
阅读次数:
3913
日志的分离1)初学syslogvoidopenlog(constchar*ident,intoption,intfacility);voidsyslog(intpriority,constchar*format,...);voidcloselog(void);facilityThefacilityargumentisusedtospecifywhattypeofprogramisloggingthemessage.Thisletstheconfigurationfilespecifythatm..
分类:
其他好文 时间:
2014-07-10 18:03:51
阅读次数:
386
python一共有两种格式化输出语法,
一种是类似于C语言printf的方式,称为 Formatting Expression
>>> '%s %d-%d' % ('hello', 7, 1)
'hello 7-1'
另一种是类似于C#的方式,称为String Formatting Method Calls
>>> '{0} {1}:{2}'.format('hello'...
分类:
编程语言 时间:
2014-07-10 17:31:38
阅读次数:
185