C语言
文章平均质量分 54
xiehl
这个作者很懒,什么都没留下…
展开
-
20080215-C语言中调用shell的方法
/************************************************************************ 概要:** to use shell in c************************************************************************/int separate(char *p_file原创 2008-02-15 08:40:00 · 285 阅读 · 0 评论 -
20080215-利用C语言取得文件的size
以下方法可能因C的版本不同而有所不同。具体用时具体调查一下。这里仅提供思路。* Program:Get the size of file#include /* For getting the files size *//****************************************************************原创 2008-02-15 08:34:00 · 269 阅读 · 0 评论 -
20080219-如何利用C语言判断文件是否存在,是否读写属性!
函数原型int _access( const char *path, int mode );int _waccess( const wchar_t *path, int mode ); ParameterspathFile or directory pathmodePermission setting When used with files, the _a原创 2008-02-19 12:33:00 · 760 阅读 · 0 评论 -
20080219-C语言中getenv函数的用法
getenv()读取环境变量的当前值的函数 原形:char *getenv(const char *name) 用法:s=getenv("环境变量名"); 需先定义char *s; 功能:返回一给定的环境变量值,环境变量名可大写或小写。如果指定的变量在环境中未定义,则返回一空串。 头文件:stdlib.h eg:String strEnv ="";strEnv = geten原创 2008-02-19 12:48:00 · 627 阅读 · 0 评论 -
20080219-C语言中golb使用说明及获得文件通番
glob(3)NAME glob, globfree - Generate pathnames matching a patternLIBRARY Standard C Library (libc.so, libc.a)SYNOPSIS #include int glob( const char *pattern,原创 2008-02-19 14:40:00 · 463 阅读 · 0 评论 -
(转)atol的使用方法
C#对DataGridView进行添加、修改、删除数据操作数据库用的是本地服务器(MySql):设定全局变量: MySqlConnection conn; MySqlDataAdapter adapter; MySqlTransaction trans;1. // 数据库联接 private System.Data.Data原创 2008-02-19 14:46:00 · 545 阅读 · 0 评论 -
20080219-C语言中system函数的用法
以下内容为转载 http://blog.chinaunix.net/u1/34183/showart_409595.html函数名: system 功 能: 发出一个DOS命令 用 法: int system(char *command); 程序例: #include #include int main(void) { printf("About to spawn command.com an原创 2008-02-19 12:42:00 · 716 阅读 · 0 评论 -
C实现系统时间取得 精确到毫秒级
void GetSysTimeToMs(){ struct timeb tb_Time; struct tm tm_Now; int hh,mm,ss,ms; char cha_Time[12+1]; memset(cha_Time,NULL,sizeof(cha_Time)); ftime(&tb_Time);/*get system time*/ /*convert to local*/原创 2009-05-13 16:32:00 · 573 阅读 · 0 评论