操作数类型: 1. direct operand(直接操作数),是一个变量名, 它表示的是变量的地址。 2. direct-offset operand(直接-偏移操作数), 是变量名加上一个偏移值, 产生一个新的偏移地址,访问没有标号的内存地址。 3. indirect operand(间接...
分类:
其他好文 时间:
2014-07-16 17:55:28
阅读次数:
153
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"Corner Cases:Did you con...
分类:
其他好文 时间:
2014-07-16 17:54:16
阅读次数:
156
一、路径1、dirname -- 返回路径中的目录部分 $path = "/etc/passwd"; $file = dirname($path); // "/etc"2、basename -- 返回路径中的文件名部分 $path = "/home/httpd/html/index.php"; $f...
分类:
Web程序 时间:
2014-07-16 17:47:43
阅读次数:
241
源:windows运行命令大全 winver 检查Windows版本 wmimgmt.msc 打开Windows管理体系结构(wmi) wupdmgr Windows更新程序 w脚本 Windows脚本宿主设置 write 写字板 winmsd 系统信息 wia...
#宏函数my-dir返回编译系统提供的当前路径,即Android.mk的目录
#如(HelloWorld/proj.android/jni/XX)
LOCAL_PATH := $(call my-dir)
#初始化模块 重置除LOCAL_PATH变量以外的所有变量
include $(CLEAR_VARS)
#导入库目录
$(call import-add-path,$(LOCAL_P...
分类:
移动开发 时间:
2014-07-16 17:25:20
阅读次数:
262
//读文件
public static String ReadFile(String path) {
File file = new File(path);
BufferedReader reader = null;
String laststr = "";
try {
reader = new BufferedReader(new FileReader(file));
String tempSt...
分类:
编程语言 时间:
2014-07-16 17:15:53
阅读次数:
318
以oracle用户登陆数据库所在的服务器,例如家目录为/home./oracle.执行以下命令进行备份操作。
sqlplus /nolog
connect /as sysdba
sql>createdirectory dump_bx as '指定一个存放dmp文件的目录';
sql>grantread,write on directory d...
分类:
数据库 时间:
2014-07-16 17:10:09
阅读次数:
205
依据《C++ More Exception》所述的规则:
Rule #1: Never write using-directives in header files.
Rule #2: Never write namespace using-declarations in header files.
Rule #3: In implementation files, never ...
分类:
其他好文 时间:
2014-07-16 11:00:58
阅读次数:
141