上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页
摘要: 一、首先安装中文支持: su root yum install "@Chinese Support" exit yum remove ibus 注销再登陆 二、安装fcitx 下载fcitx输入法源码,百度搜索即可,我下载的是华军软件园提供的“Fcitx 小企鹅输入法 4.0 正式版”。 先安装fcitx所依赖的库: yum install gettext gettext-devel libXft libXft-devel libXpm libXpm-devel 解压缩源码包: unzip fcitx-4.0.0.tar.zip tar zxf fcitx-4.0.0.ta 阅读全文
posted @ 2014-03-22 15:13 丶Blank 阅读(294) 评论(0) 推荐(0) 编辑
摘要: #include 文件状态,是unix/linux系统定义文件状态所在的伪标准头文件。含有类型与函数: dev_t st_dev Device ID of device containing file. ino_t st_ino File serial number. mode_t st_mode Mode of file (see below). nlink_t st_nlink Number of hard links to the file. uid_t st_uid User ID of file. gid_t st_gid Group ID of file. dev_t st_rde 阅读全文
posted @ 2014-03-22 10:33 丶Blank 阅读(12647) 评论(0) 推荐(2) 编辑
摘要: 配置SecureCrt 和 ubuntu1. 首先要明白什么是ssh?可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。2. 开启ubuntu上的ssh功能先安装,安装后就自动开启了.sudo apt-get install openssh-server openssh-client3. 安装secureCRT4. 查看ubuntu的ipifconfig(注意是ifconfig,不是windows上的ipconfig)5. 连接secureCRT => Quick Connect, 连接ubuntu, 输入ubuntu的id和pwd6. 汉字乱 阅读全文
posted @ 2014-03-06 19:25 丶Blank 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 参考http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory1.OnCentOS 5.8, yum installglibc-devel.i386 OnCentOS 6.3, yum installglibc-devel.i686.2.OnCentOS 5you will need to doyum install libstdc++-devel.i386 OnCentOS 6you will need to doyum install libstdc++-devel.i686然后修改 阅读全文
posted @ 2014-03-04 20:02 丶Blank 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: 安装完apache之后(不是按照默认路径安装的,例如是 D:\ )右下方哪个小羽毛图标是没有启动的,左键不好使,而且提示“No services installed”,提示服务器没有被安装。解决方法: 找到 apache2 目录下的 bin 目录 有个apache.exe 文件,在运行中键入:cmd ,出来DOS窗口键入: d:\ 注释:进入D盘,假如apache安装在D盘键入: cd apache2 注释:进入D:\apache2\目录键入: cd bin 注释:进入D:\apache2\bin\ 目录键入: httpd.exe -k install -n... 阅读全文
posted @ 2013-11-14 22:09 丶Blank 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 实验题目 回溯法实现8皇后问题实验要求 a.掌握递归回溯算法的基本思想。 b.学习掌握应用面向对象通用回溯程序框架解决实际问题。 提高面向对象编程的技能。作业描述:在8*8格的棋盘上放置彼此不受攻击的8个皇后。按照国际象棋的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子。8后问题等价于在n*n格的棋盘上放置8个皇后,任何2个皇后不放在同一行或同一列或同一斜线上。package pku.java;import java.util.ArrayList;import java.util.List;public class Main { private static int SIZE... 阅读全文
posted @ 2013-09-20 23:30 丶Blank 阅读(979) 评论(0) 推荐(0) 编辑
摘要: Problem StatementThe old song declares "Go ahead and hate your neighbor", and the residents of Onetinville have taken those words to heart. Every resident hates his next-door neighbors on both sides. Nobody is willing to live farther away from the town's well than his neighbors, so the 阅读全文
posted @ 2013-09-09 09:16 丶Blank 阅读(498) 评论(0) 推荐(0) 编辑
摘要: Problem StatementA sequence of numbers is called a zig-zag sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative. A sequence with fewer than two elements is trivially a zig-zag 阅读全文
posted @ 2013-09-05 23:08 丶Blank 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 假设存在一个序列d[1..9] = 2 1 5 3 6 4 8 9 7,可以看出来它的LIS长度为5。下面一步一步试着找出它。我们定义一个序列B,然后令 i = 1 to 9 逐个考察这个序列。此外,我们用一个变量Len来记录现在最长算到多少了首先,把d[1]有序地放到B里,令B[1] = 2,就是说当只有1一个数字2的时候,长度为1的LIS的最小末尾是2。这时Len=1然后,把d[2]有序地放到B里,令B[1] = 1,就是说长度为1的LIS的最小末尾是1,d[1]=2已经没用了,很容易理解吧。这时Len=1接着,d[3] = 5,d[3]>B[1],所以令B[1+1]=B[2]=d[ 阅读全文
posted @ 2013-09-04 20:36 丶Blank 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 这个问题很basic,不过还是困扰了我一段时间.(这里主要讨论的是命令行模式下)我本来觉得应该使用命令 rmdir但是发现它无法删除非空的目录.后来发现了原来应该使用命令 rm -rf 目录名其中参数-f表示force.使用了这个参数就不会提示你是否要删除了. 阅读全文
posted @ 2013-08-21 10:41 丶Blank 阅读(686) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页