浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年1月12日

摘要: 后台检测U盘并复制到指定路径(C语言实现) http://my.oschina.net/tongtongxyz/blog/101749 阅读全文
posted @ 2013-01-12 23:56 lexus 阅读(360) 评论(0) 推荐(0)

摘要: IOCTL函数说明 - KPTu - 博客园IOCTL函数说明当在ioctl里使用FIONREAD时,除了获得所指定的读缓存大小以外,还有清除设备准备就绪状态的作用.当38行注释以后, 由于各个设备的状态未被清除,所以循环一直处于非阻塞的状态.不停的打印一个状态(即未清除状态)的信息.如果不注释ioctl,那么select会自动清除未准备好的设备状态. 此时阻塞是有效地.同样的,在socket当中... 阅读全文
posted @ 2013-01-12 18:55 lexus 阅读(400) 评论(0) 推荐(0)

摘要: Linux 设备驱动 Edition 3-Linux设备驱动第三版(中文版)- -Linux 设备驱动 Edition 3下一页Linux 设备驱动 Edition 3By Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman由 quickwhale 翻译的简体中文版 V0.1.0 2006-6-2遵循原版的版权声明. 还在完善中. ... 阅读全文
posted @ 2013-01-12 17:05 lexus 阅读(530) 评论(0) 推荐(0)

摘要: 多路复用与设置阻塞、非阻塞模式 - To be, or not to be: that is the question - 博客频道 - CSDN.NET 多路复用与设置阻塞、非阻塞模式 分类: Linux/Unix C/C++ Network Program 2009-10-06 20:30 202人阅读 评论(0) 收藏 举报阻塞和非阻塞模式使用fcntl()可以进... 阅读全文
posted @ 2013-01-12 17:05 lexus 阅读(450) 评论(0) 推荐(0)

摘要: Linux 设备驱动 Edition 3-Linux设备驱动第三版(中文版)- -Linux 设备驱动 Edition 3下一页Linux 设备驱动 Edition 3By Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman由 quickwhale 翻译的简体中文版 V0.1.0 2006-6-2遵循原版的版权声明. 还在完善中. ... 阅读全文
posted @ 2013-01-12 17:00 lexus 阅读(413) 评论(0) 推荐(0)

摘要: UNPv1笔记9 -- 非阻塞IO - 我爱美女的日志 - 网易博客Assert 实现 (zz)忘记该忘记的 -- 任重道远UNPv1笔记9 -- 非阻塞IO 2009-06-02 23:32:15|分类: tcpipsocket |标签: |字号大中小订阅非阻塞读写默认 socket 是阻塞的,读写函数 read, readv, recv, recvfrom, recvmsg 以及 write... 阅读全文
posted @ 2013-01-12 16:44 lexus 阅读(319) 评论(0) 推荐(0)

摘要: 使用fcntl开启阻塞和非阻塞I/O代码_生于忧患 死于安乐_百度空间使用fcntl开启阻塞和非阻塞I/O代码#include "fcntl.h"int flags;//set nonblock:if(flags = fcntl(fd,F_GETFL, 0 ) < 0){ ;//errror}else{ ;//ok}flags |= O_NONBLOCK;if(fcntl(fd, F_SE... 阅读全文
posted @ 2013-01-12 16:21 lexus 阅读(254) 评论(0) 推荐(0)

摘要: 将socket设置为非阻塞(non-blocking) - 艾子的日志 - 网易博客将socket设置为非阻塞(non-blocking) 2011-02-17 22:36:51|分类: 默认分类 |标签: |字号大中小订阅有一个非常有迷惑性的做法是:u_long has = 1;ioctl(m_sock, FIONBIO , &has);这个函数会非常无耻的返回你success,但是它实际上很... 阅读全文
posted @ 2013-01-12 16:19 lexus 阅读(468) 评论(0) 推荐(1)

摘要: fcntl使用 - and_tt - 博客园and_ttfcntl使用功能描述:根据文件描述词来操作文件的特性。#include <unistd.h>#include <fcntl.h>int fcntl(int fd, int cmd);int fcntl(int fd, int cmd, long arg);int fcntl(int fd, int cmd, struct flock *lo... 阅读全文
posted @ 2013-01-12 16:06 lexus 阅读(191) 评论(0) 推荐(0)

摘要: 开发中三个小经验:strncpy,list::front,string::c_str - 常高伟的专栏 - 博客频道 - CSDN.NET开发中三个小经验:strncpy,list::front,string::c_str 分类: 软件设计 2010-09-04 09:36 587人阅读 评论(1) 收藏 举报最近一段时间开发非常忙,CSDN很少光顾。开发中有些经验教训... 阅读全文
posted @ 2013-01-12 15:05 lexus 阅读(260) 评论(0) 推荐(0)

摘要: const char * 和 std::string.c_str()是个危险的东西! | JXITC Studioconst char * 和 std::string.c_str()是个危险的东西!Posted on February 29, 2012 by jxitc 今天中招了!有一个类,内部有个 const char * 类型的变量 word, 该类构造函数用一个string来初始化wo... 阅读全文
posted @ 2013-01-12 14:39 lexus 阅读(495) 评论(0) 推荐(1)

摘要: 【STL】string中c_str()、data()函数的用法 - 清风小阁 - 博客频道 - CSDN.NET【STL】string中c_str()、data()函数的用法 分类: [C++]--[STL] 2012-08-26 10:52 629人阅读 评论(0) 收藏 举报标准库的string类提供了3个成员函数来从一个string得到c类型的字符数组:c_str... 阅读全文
posted @ 2013-01-12 13:55 lexus 阅读(671) 评论(0) 推荐(0)

摘要: C++ Notes: Table of ContentsFred: C++ Notes: Table of ContentsSome of these supplemental notes are good, others only rough drafts or half-completed. Because they are designed only to provide additio... 阅读全文
posted @ 2013-01-12 13:43 lexus 阅读(178) 评论(0) 推荐(0)

摘要: 博客赚钱小记:知蚁博客2012年度收入说明 – 知蚁博客博客赚钱小记:知蚁博客2012年度收入说明作者:知蚁 发布时间:2013-01-01 分类:博客成长 标签:Adsense、postlinks、博客、百度联盟、网赚 333人浏览不知不觉的又过去了一年,自己又年长了一岁,不过令人高兴的是我的博客(知蚁博客)又坚持了一年(据独立博客数据库的统计,很多博客都停止更新超过一年时间了,有些已经无法打开... 阅读全文
posted @ 2013-01-12 13:35 lexus 阅读(231) 评论(0) 推荐(0)

摘要: 强烈推荐:C++ manpages -- C++函数查询文档_Dasm_百度空间C++ manul pages generater: cppman generates C++ manual pages fromcplusplus.comand provide a man-like interface to view man pages.PPA can be found here:https://l... 阅读全文
posted @ 2013-01-12 13:28 lexus 阅读(288) 评论(0) 推荐(0)

摘要: 关于 - Stack Enqueue 栈问网Stack Enqueue建立于2011年,它是一个开放式的程序员问答站点,在这里你可以自由的提出问题,回答问题,也可以自由的阅读问题。我们视程序员的集合是个大家庭,每个社区成员都可以在这里相互帮助下解决各自的问题。 并且随着自己的声誉的提高,自己在社区的权限也越大。意义 随着stackoverflow的崛起,我们希望给中国的程序员们提供一个类似的环境,... 阅读全文
posted @ 2013-01-12 13:15 lexus 阅读(194) 评论(0) 推荐(0)

摘要: string c_str 使用问题 | 一淘测试博客代码示例:std::string local_str; local_str = "abcd"; const char *p = local_str.c_str(); … local_str.append(“efg”);现象&后果:指针p不再指向local_str。 存在一个野指针,后果可大可小。Bug分析:这是使用string的c_str()常犯... 阅读全文
posted @ 2013-01-12 13:08 lexus 阅读(267) 评论(0) 推荐(0)

摘要: 今天,注定是一个不眠夜 – 请叫我“啊哈磊”今天,注定是一个不眠夜,其实人生不是贪心,而是一场动态规划。 阅读全文
posted @ 2013-01-12 11:26 lexus 阅读(277) 评论(0) 推荐(0)

摘要: Cheng, Harry H.SoftwareI started my career in computing using computers with punch cards. Now, my computing interests are high-level script computing and mobile agent-based computing. My white paper o... 阅读全文
posted @ 2013-01-12 11:14 lexus 阅读(184) 评论(0) 推荐(0)

摘要: ... 阅读全文
posted @ 2013-01-12 11:03 lexus 阅读(253) 评论(0) 推荐(0)

摘要: C for Engineers and ScientistsHarry H. Cheng, Professor University of California, Davis Any criticisms, comments, and suggestions for improvement in future editions from both instructo... 阅读全文
posted @ 2013-01-12 10:57 lexus 阅读(281) 评论(0) 推荐(0)

摘要: About SoftIntegration -- C interpreter for C/C++ developersAbout SoftIntegration SoftIntegration, Inc. is the leader of scripting technology for ubiquitous computing. SoftIntegration provides infrast... 阅读全文
posted @ 2013-01-12 10:51 lexus 阅读(307) 评论(0) 推荐(0)

摘要: 刚想起这事来, 阅读全文
posted @ 2013-01-12 10:36 lexus 阅读(240) 评论(0) 推荐(0)

摘要: Ch -- an embeddable C/C++ interpreter, C and C++ scripting languageCh is a C/C++ interpreter and scripting language environment used by teachers, students, engineers and scientists around the world to... 阅读全文
posted @ 2013-01-12 10:27 lexus 阅读(261) 评论(0) 推荐(0)

摘要: TCC : Tiny C CompilerTiny C CompilerNews[Note: I am no longer working on TCC. Check the mailing list to get up to date information.](May 20, 2009) TCC version 0.9.25 is out thanks to Grischka (Changel... 阅读全文
posted @ 2013-01-12 10:24 lexus 阅读(539) 评论(0) 推荐(0)

摘要: Ch -- 一个 C/C++ 解释器 - Random Tech ThoughtsCh -- 一个 C/C++ 解释器2009-11-05动态语言很重要的一个功能就是支持交互式的开发,用惯了 Python 有时候非常希望 C 也能有一个解释器来用,尤其是忘了 C 的某些语法想写个简单的例子来测试的时候。很久以前就搜过 C 的解释器,搜到过 Ch,不记得当时为什么没有试用过。今天下了个免费版本的用了... 阅读全文
posted @ 2013-01-12 10:23 lexus 阅读(550) 评论(0) 推荐(0)

摘要: CString_百度百科 CString 求助编辑百科名片 CString 是一种很有用的数据类型。它们很大程度上简化了MFC中的许多操作,使得MFC在做字符串操作的时候方便了很多。不管怎样,使用CString有很多特殊的技巧,特别是对于纯C背景下走出来的程序员来说有点难以学习。 阅读全文
posted @ 2013-01-12 09:39 lexus 阅读(607) 评论(0) 推荐(0)

摘要: #include <string>//这个后面是不用带;的using namespace std;//这个后面是要带;的 阅读全文
posted @ 2013-01-12 09:17 lexus 阅读(180) 评论(0) 推荐(0)