码迷,mamicode.com
首页 >  
搜索关键字:get_line    ( 56个结果
源码阅读tinyhttpd
tinyhttpd 是一个用C语言实现的简单的HTTP服务器程序,500行代码,值得阅读。看完这个代码之后有几点需要进一步的思考: 1.get_line()函数要处理跨平台的换行('\n' or '\r\n') MSG_PEEK 标志可以窥探缓冲区中的数据,从而决定是否读取; 2.stat  ,st.st_mode & S_IFMT) == S_IFDIR 判断对应的路径是否是目录; 3....
分类:Web程序   时间:2015-04-03 21:06:00    阅读次数:225
UVA - 11768 Lattice Point or Not (拓展gcd)
Now a days a very common problem is:“The coordinate of two points in Cartesian coordinate system is (200, 300) and(4000, 5000). If these two points are connected we get a line segment. How manylattice...
分类:其他好文   时间:2014-08-24 23:54:33    阅读次数:406
利用fgets,fputs的回显程序
#include #define MAXLINE 20int main(void){char line[MAXLINE];while(fgets(line,MAXLINE,stdin) != NULL && line[0] != '\n') fputs(line, stdout);return 0;...
分类:其他好文   时间:2014-06-26 00:18:04    阅读次数:256
java 笔试
单例设计模式:public class Singliton { //no new private Singliton (){ } static Singliton ins = null; public static Singliton get(){ if(ins == null){ ...
分类:编程语言   时间:2014-06-18 22:52:01    阅读次数:238
C# 获取textbox行数
当textbox为多行时,获取它的行数:int count = this.txtMsgInfo.Lines.GetUpperBound(0);
分类:其他好文   时间:2014-05-26 14:50:35    阅读次数:292
ahjesus linux连接阿里云ubuntu服务器并更改默认账号和密码,以及创建子账户
先确保本地Linux服务器SSH服务开启,如果没有开启直接执行指令:service sshd start然后我们使用ssh指令进行远程登陆ssh username@ip-address输入passwd指令修改旧密码修改默认账号rootvi /etc/passwd按i键进入编辑状态修改第1行第1个ro...
分类:系统相关   时间:2014-04-29 15:51:22    阅读次数:586
56条   上一页 1 ... 4 5 6
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!