1. 思路 使用FindFirstFile、FindNextFile函数,来遍历目录。结果保存在WIN32_FIND_DATA结构体中。将查询结果的dwFileAttributes和FILE_ATTRIBUTE_DIRECTORY取与操作,判断是否为目录。2. 示例代码#include
#include
#include using...
分类:
编程语言 时间:
2015-05-06 13:26:02
阅读次数:
182
msys2 x64 安装好后,接着更新,之后安装一堆辅助工具以及编译器,但是在安装 LLVM 3.5.1 时,会提示 sed:无法读取?mingw64/share/llvm/cmake/LLVMConfig.cmake:No?such?file?or?directory 确实的这个目录...
分类:
其他好文 时间:
2015-05-05 06:41:08
阅读次数:
377
1. ls命令ls命令是列出目录内容(List Directory Contents)的意思。运行它就是列出文件夹里的内容,可能是文件也可能是文件夹。root@tecmint:~# ls Android-Games MusicPictures ...
分类:
系统相关 时间:
2015-05-04 19:56:35
阅读次数:
228
useradd命令参数详解: -h, --help display this help message and exit -k, --skel SKEL_DIR use this alternative skeleton directory -K, --key KEY=VALUE override ...
分类:
其他好文 时间:
2015-05-03 23:25:50
阅读次数:
121
我在win7上用IDLE编写了一个python文件(MyTopo.py),但是用putty传到VM中的ubuntu系统中,用 ./MyTopo方式执行。显示:/bin/sh^M: bad interpreter: No suchfile ordirectory。但是用 pythonMyTopo.py...
1.在虚拟主机中实现用户验证[root@localhostlogs]#vi/usr/local/apache2/conf/extra/httpd-vhosts.conf<VirtualHost*:80>DocumentRoot"/data/www"ServerNamewww.123.comServerAliaswww.aaa.com#用户认证<Directory*>AllowOverrideAuthConfigAuthName"study"AuthTyp..
分类:
Web程序 时间:
2015-05-03 07:09:12
阅读次数:
266
执行# ./glibc-2.14/configure 出现以下错误:checking LD_LIBRARY_PATH variable... contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn't contain the current directory when
*** building glibc....
分类:
其他好文 时间:
2015-05-02 11:15:16
阅读次数:
539
configure glibc-2.14 时出现以下错误:[root@localhost opt]# cd glibc-2.14
[root@localhost glibc-2.14]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unk...
分类:
其他好文 时间:
2015-05-02 09:37:04
阅读次数:
611
在安装mpfr时出现以下错误:
-bash: ./mpfr-3.1.2/make: No such file or directory[root@localhost opt]# ./mpfr-3.1.2/make
-bash: ./mpfr-3.1.2/make: No such file or directory
[root@localhost opt]# /opt/mpfr-3.1.2/mak...
分类:
其他好文 时间:
2015-05-01 18:45:18
阅读次数:
236
一、JNDI概述
JNDI(JavaNaming Directory Interface)--java命名和目录接口,是一组在Java应用中访问命名和目录服务的API。为开发人员提供了查找和访问各种命名和目录服务的通用、统一的接口,类似JDBC,都是构建在抽象层上。是J2EE的标准之一,所有的J2EE容器都必须提供一个JNDI的服务。
JNDI的命称可能会让人产生混淆...
分类:
其他好文 时间:
2015-04-29 19:48:47
阅读次数:
118