自己把一些学习中和使用中的一些点滴有用的记录下来和大家分享。1.获取指定长度的字符串,或者说为字符串数组获取用户输入的字符void get_str(char
str[], int len){ int i=0, c; while (i=250){ while(getchar()!=’\n’) ; .....
分类:
编程语言 时间:
2014-06-09 21:49:51
阅读次数:
325
网上已经有很多类似的记录了,这里写这个是给自己在项目中碰到的问题做个简单的记录,以后将持续更新1.IE67 border-bottom失效
一个a标签,想要使用移上去后会在下面显示一个横条,我用border-bottom做了一个效果,IE6
7必须加了line-height后才能显示,应该是因为没....
分类:
其他好文 时间:
2014-06-09 16:00:46
阅读次数:
209
题目链接The count-and-say sequence is the sequence of
integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one
1"or11.11is read off a...
分类:
其他好文 时间:
2014-06-09 15:53:03
阅读次数:
246
1、新建txt文件,更改后缀名为udl2、右击,以OLE DB Core Services
方式打开3、填写相应的服务器名、登陆方式、数据源4、以txt方式打开文件,连接字符串已经生成了,怎么样,给力吧[oledb]; Everything after
this line is an OLE DB ...
分类:
数据库 时间:
2014-06-09 14:06:07
阅读次数:
476
#include #include double n,p;int t; int main(){
while(~scanf("%lf%lf",&n,&p)) { t=int (pow(p,1/n) + 0.5);
printf("%d\n",t); } return ...
分类:
其他好文 时间:
2014-06-09 13:54:21
阅读次数:
209
//定义二维平面上的点struct Point{ int x; int y;
Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left,
const Point& right){ return...
分类:
其他好文 时间:
2014-06-08 22:26:17
阅读次数:
357
摘自github语言无关类操作系统开源世界旅行手册鸟哥的Linux私房菜(简体)Linux
系统高级编程The Linux Command Line(中英文版)Linux 设备驱动(第三版)深入分析Linux内核源码UNIX
TOOLBOXWEB服务器Nginx开发从入门到精通(淘宝团队出品)版本控...
分类:
其他好文 时间:
2014-06-08 20:58:35
阅读次数:
701
在apache,nginx,lighttpd等web服务器当中,都有一项sendfile相关的配置,在一些网上的资料都有谈到sendfile会提升文件传输性能,那sendfile到底是什么呢?它的原理又是如何呢?在传统的文件传输里面(read/write方式),在实现上其实是比较复杂的,需要经过.....
分类:
系统相关 时间:
2014-06-08 20:28:40
阅读次数:
288
梗概:为什么C语言读取文件到结构体时为什么整天多读一行?一切都是【!feof(fp)】的错!!! while
(!feof(fp)){fgets(buffer,256,fp);j++;}像这样的代码,是很多C语言学者经常犯的错误!!feof()这个函数是用来判断指针是否已经到达文件尾部的。若fp已经...
分类:
编程语言 时间:
2014-06-08 19:22:34
阅读次数:
276
安装完Nginx之后,启动报错。[vagrant@localhost sbin]$ sudo
./nginx./nginx: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No ...
分类:
其他好文 时间:
2014-06-08 19:01:47
阅读次数:
294