介绍程序参数项(program options)是一系列name=value对,program_options 允许程序开发者获得通过命令行(command line)和配置文件(config file)获取这些参数项。为什么需要这样一个库?为什么比你手工写代码分解命令行参数要好?使用更容易。定义参...
分类:
编程语言 时间:
2014-09-02 19:38:25
阅读次数:
460
接口文档:换头像接口 user/change_avatar发送数据HTTP Post body(一共2对KEY-VALUE):json={"uid":"1","sid":"0123456789ABCDEF0123456789ABCDEF","ver":"1","request":{}}file=图片...
分类:
Web程序 时间:
2014-09-02 19:36:35
阅读次数:
322
E/Trace(28187):erroropeningtracefile:Nosuchfileordirectory(2)错误原因:androidapi版本和模拟器版本不一致,对开发无影响。android.content.res.Resources$NotFoundException: String...
分类:
移动开发 时间:
2014-09-02 19:20:45
阅读次数:
196
对于程序员来说经常要查看一些Reference帮助文档,可是面对一些旧文档,以及在没有网络的状况下,如何让你的linux支持chm文档的阅读,那么看下文吧!方法一:简单方法,在你的Firefox火狐上安装扩展(Add-on),搜索有一个chmreader,选择安装,重启firefox浏览器即可。要看*.c..
分类:
系统相关 时间:
2014-09-02 18:13:05
阅读次数:
389
场景说明:在编译r8168型号网卡驱动的时候,错误提示如下:找不到/lib/modules/‘uname-r‘/buildandStop编译网卡驱动r8168.ko,需要用到/lib/modules/‘uname-r‘/build这个文件夹build这个文件夹,实际上是个软链接:build->../../../usr/src/kernels/2.6.3(你的系统版本号)..
分类:
其他好文 时间:
2014-09-02 18:00:26
阅读次数:
184
如题,file.txt的内容如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
C++实现:
#include
#include
#include
using namespace std;
//const unsigned int k = 5;
#define k 5
void printLastKLines(ifstream &...
分类:
编程语言 时间:
2014-09-02 17:50:05
阅读次数:
192
public static String bin2Hex(String binStr) {
int deci = Integer.valueOf(binStr,2);
return Integer.toHexString(deci);
}
public static String hex2Bin(String hexStr) {
int deci = Integer.value...
分类:
其他好文 时间:
2014-09-02 17:47:45
阅读次数:
422
主要类:
package com.example.callstatus;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.Thread.UncaughtExceptionHandler;...
分类:
移动开发 时间:
2014-09-02 17:46:45
阅读次数:
225
Environment.getDataDirectory().getPath() : /dataEnvironment.getDownloadCacheDirectory().getPath() : /cacheEnvironment.getExternalStorageDirectory().ge...
分类:
移动开发 时间:
2014-09-02 17:35:25
阅读次数:
183
在git for windows里面不能commit修改,提示open shellopen shell以后,使用git add [filename],会报错:fatal: Unable to create './.git/index.lock': File exists. If no other g...