#include #include #include int main(int argc,char
*argv[]){ int n=0; FILE *fp; if((fp=fopen(argv[1],"r"))==NULL) {
perror("fopen");...
分类:
其他好文 时间:
2014-05-02 18:05:54
阅读次数:
308
相关函数fork, execle, execlp, execv, execve,
execvpWindows下头文件#include Linux下头文件#include 函数定义int execl(const char *path,
const char *arg, ...);函数说明execl()...
分类:
其他好文 时间:
2014-05-02 17:52:52
阅读次数:
674
前几天装的mysql,用的还挺爽的,第二天再用就不行了,报的错误如标题。网上也是众说纷纭,可能有很多原因会导致这种错误吧。我用的是将Mysqld这个进程杀掉,就可以启动mysql了
分类:
数据库 时间:
2014-05-02 17:44:14
阅读次数:
378
这周继续讲解php,更加深入的了解的php与数据库的链接,$conn=mysql_connect("localhost","root","") or die
("数据库连接失败");这是连接到数据库的代码。在mysql中数据编码必须一致,否则就会有乱码。
分类:
Web程序 时间:
2014-05-02 17:35:28
阅读次数:
384
拷贝构造函数何时会被调用?1.
对象以值传递的方式传入函数参数2.对象以值传递的方式从函数返回3.对象需要通过另外一个对象进行初始化下面我们来看代码://#include //using
namespace std;//template //T:队列的类型,char,int,double,包括自己....
分类:
编程语言 时间:
2014-05-02 17:33:17
阅读次数:
401
(1)打印字符char c;printf("%c",c);(2)打印整形int
i;printf("%d",i); //有符号十进制数printf("%u",i); //无符号十进制数(3)打印浮点数float
f;printf("%f",f);(4)打印指针int *p;pri...
分类:
其他好文 时间:
2014-05-02 16:13:07
阅读次数:
378
#include #include #include int main(int argc,char
**argv){ FILE *fp_src,*fp_des; char buf[128]; int num; if(argc!=3) {
printf("t...
分类:
其他好文 时间:
2014-05-02 16:06:36
阅读次数:
562
Mysql-proxy安装配置作者:lixiuran 日期:2014年5月2日相关软件包以后提供!
一、安装前准备1.mysql-proxy安装前所需依赖包libevent1.xorhigher(1.3borlaterispreferred)lua5.1.xorhigher(使用5.2版本编译时会出...
分类:
数据库 时间:
2014-05-02 11:31:41
阅读次数:
396
在C语言某个程序当中需要把文本16进制转换成对应的16进制数,比如字符串"0x1a"转换成10进制的26,可以用以下函数来实现相关函数: atof, atoi,
atol, strtod, strtoul表头文件: #include 定义函数: long int strtol(const char ...
分类:
编程语言 时间:
2014-05-02 09:58:29
阅读次数:
290
sql%通配符可以匹配任意字符包括空字符串_通配符表示一个字符不包含空数据库命名字母数字下划线可以以数字开头但是不要用系统保留关键字尽量使用小写linux严格区分大小写名字比较长的时候使用_下划线做连接查看数据库创建showcreatedatabasedb_name查看建表语句showcreatetable..
分类:
数据库 时间:
2014-05-02 08:08:04
阅读次数:
377