摘要: 文件系统类型选项mount –t [文件系统类型] 设备 挂载点-t:一般可省略,如系统无法自动判断可以手动指定挂在文件系统类型。1.挂载windows fat32 和ntfs格式存储 #mount–t vfat /dev/hda2 /mnt/fat1 #mount–t ntfs /dev/hda3 /mnt/ntfs2.挂载数据光盘格式:iso9660,udf #mount–t iso9660 /dev/cdrom /mnt/cdrom3.u盘挂载 若无法加载u盘,执行下列命令,加载u盘模块 #modprobeusb-storage 挂载选项lwindows分区常用挂载选项 iocharse 阅读全文
posted @ 2012-01-29 20:13 xxx1 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void swap(int *x, int *y) { *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y; } void revert(int *a, int len) { int first = 0, last = len - 1; for (;first < last; first++, last--) swap(&a[first], &a[last]); } int main() { int i, a[] = {1 ,2, 3, 4, 5}; revert(a, 5); for (i 阅读全文
posted @ 2012-01-29 14:32 xxx1 阅读(164) 评论(0) 推荐(0) 编辑
摘要: putty提示“Connection refused” 但可以ping通 经查,解决方法如下:首先判断是否安装sshrpm -qa opensshrpm -qa openssh-server之后执行:#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key再进行putty连接,可成功登陆。 阅读全文
posted @ 2012-01-29 14:19 xxx1 阅读(371) 评论(0) 推荐(0) 编辑
摘要: int binary(int array[], int n, int k) { int l = -1; int r = n; while (l+1 != r) { int i = (l+r)/2; if (k < array[i]) r = i; if (k = array[i]) return i; if (k > array[i]) l = i; } return n; } 阅读全文
posted @ 2012-01-19 16:13 xxx1 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ``Accordian'' PatienceYou are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:Deal cards one by one in a row from left to right, not overlapping. Whenever the card matches its immediate neighbour on the left, or matches the third card to 阅读全文
posted @ 2012-01-18 21:18 xxx1 阅读(222) 评论(0) 推荐(0) 编辑
摘要: CSS整理目录1.排版2.调用css样式3.CSS文字处理4.CSS背景使用5.CSS列表使用6.CSS边框使用7.CSS边界使用8.CSS区块使用9.CSS背景使用10. CSS浮动使用11. CSS定位使用12. CSS溢出使用13. CSS滚动条使用14. CSS链接使用15. CSS光标的使用16. CSS中DHTML使用17. CSS缩放使用18. CSS滤镜19. CSS表格20. CSS构造表单排版排版专用标记:<div>与<span><div>占用一行,所以多个<div>会换行<span>占用一行中的一块,因此可多个& 阅读全文
posted @ 2012-01-18 10:18 xxx1 阅读(751) 评论(0) 推荐(0) 编辑
摘要: #rm -f /etc/systemd/system/default.target#ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target#reboot 阅读全文
posted @ 2012-01-10 21:24 xxx1 阅读(275) 评论(0) 推荐(0) 编辑
摘要: fedora15 vmware8vmware安装中出现如下提示:What is the location of the directory of C header files that match your running kernel?解决方法:1. 查看kernel版本号 cd /usr/src/kernels/ dir 2. 到http://rpmfind.net//linux/RPM/fedora/15/i386/kernel-devel-2.6.38.6-26.rc1.fc15.i686.html 找到与你对应版本号。3. 安装 rpm -ivhkernel-devel-2.6... 阅读全文
posted @ 2012-01-01 22:40 xxx1 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 在root权限下gcc:yum -y install gccg++:yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++ 阅读全文
posted @ 2012-01-01 22:19 xxx1 阅读(8897) 评论(0) 推荐(0) 编辑
摘要: 控制标记(1).换行<br>格式:<br>(2).段落<p>格式:<palign=”排列方式”>…</p>Align属性:left 往左靠(默认)center 往中靠right 往右靠(3).水平直线<hr>格式:<hr>属性size 像素绝对设置,以数字表示,属性值越大,线越粗百分比相对设置,以%表示,属性值越大,线越粗width 像素绝对设置,长度不会应视窗的改变而改变百分比相对设置,长度会随着视窗宽度而改变noshade 实体线color(4).背景色与文字设置格式:<bodybgcolor=”背景 阅读全文
posted @ 2011-12-31 22:08 xxx1 阅读(750) 评论(0) 推荐(0) 编辑