摘要: C语言字符串操作函数1. 字符串反转 - strRev2. 字符串复制 - strcpy3. 字符串转化为整数 - atoi4. 字符串求长 - strlen5. 字符串连接 - strcat6. 字符串比较 - strcmp7. 计算字符串中的元音字符个数8. 判断一个字符串是否是回文1. 写一个函数实现字符串反转版本1 - while版void strRev(char *s){ char temp, *end = s + strlen(s) - 1; while( end > s) { temp = *s; *s = *end; *end = temp; --... 阅读全文
posted @ 2013-05-24 21:13 chasu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 在LINUX里面,设备类型分为:字符设备、块设备以及网络设备,PCI是一种和ISA为一类的总线结构,归属于网络驱动设备~~~字符设备、块设备主要区别是:在对字符设备发出读/写请求时,实际的硬件I/O一般就紧接着发生了,而块设备则不然,它利用一块系统内存作为缓冲区,当用户进程对设备请求能满足用户的要求时,就返回请求的数据,如果不能就调用请求函数来进行实际的I/O操作,因此,块设备主要是针对磁盘等慢速设备设计的,以免消耗过多的CPU时间来等待~~~系统中能够随机(不需要按顺序)访问固定大小数据片(chunks)的设备被称作块设备,这些数据片就称作块。最常见的块设备是硬盘,除此以外,还有软盘驱动器、 阅读全文
posted @ 2013-05-24 16:35 chasu 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: $ df -h文件系统 容量 已用 可用 已用% 挂载点E:/cygwin/bin 208G 69G 140G 33% /usr/binE:/cygwin/lib 208G 69G 140G 33% /usr/libE:/cygwin 208G 69G 140G 33% /C: 50G 22G 29G 43% /cygdrive/cD: 40G 28G 13G 70% /cygdrive/dE: 208G 69G 140G 33% /cygdrive/e 阅读全文
posted @ 2013-05-18 16:11 chasu 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 编译报错问题1:./confiure 报错make[2]: Entering directory `/home/sc/su/larbin-2.6.3/src/utils'makedepend -f- -I.. -Y *.cc 2> /dev/null > .dependmake[2]: Leaving directory `/home/sc/su/larbin-2.6.3/src/utils'make[2]: Entering directory `/home/sc/su/larbin-2.6.3/src/interf'makedepend -f- -I.. 阅读全文
posted @ 2013-04-23 20:48 chasu 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 /************************************************************************ 2 用c实现HASH表创建、插入、查找、删除、打印 3 4 转载文章 5 ************************************************************************/ 6 #include <stdio.h> 7 #include <STDLIB.H> 8 #include <MEMORY.H> 9 10 #define STATUS int 11 #de 阅读全文
posted @ 2013-04-23 14:53 chasu 阅读(914) 评论(0) 推荐(0) 编辑