安装Erlang比较简单下载Erlang的压缩包输入tar -zxvf 压缩包 解压进入解压的目录下 输入./configure在./configure执行完成后,输入make然后输入make install即可完成运行时输入erl即可进入交互命令行模式Prolog我安装的是Swing-Prolog...
分类:
其他好文 时间:
2014-07-07 14:25:21
阅读次数:
206
今天碰到一个比较坑爹的问题,在centos上用yum安装编译环境,运行:
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
结果导致编译cocos2d-x出现错误:
cc1plus: error: unrecognized command line option "-std=c++11"...
分类:
其他好文 时间:
2014-07-02 08:23:01
阅读次数:
290
在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
分类:
其他好文 时间:
2014-07-02 07:36:22
阅读次数:
244
如果在这时就进行配置安装Mono的话,会在make阶段得到一个“找不到 Microsoft.Portable.Common.targets 文件”的错误提示,所以需要先进行如下处理:#> cd (mono安装路径的前缀)/mono-3.4.0/mcs/tools/xbuild/targets#> c...
分类:
其他好文 时间:
2014-07-01 22:55:27
阅读次数:
239
在Linux下编译Lua时,我一般都是使用的make generic,这样编译没有什么问题,运行lua的程序也都OK,但是,这样在加载外部的C动态链接库,却总是报下面的错误dynamic libraries not enabled; check your Lua installation查找了半天资...
分类:
其他好文 时间:
2014-07-01 19:59:40
阅读次数:
812
监听和替换多台服务器之间的来回切换一.安装tar zxvf keepalived-1.1.15.tar.gzcd keepalived-1.1.15./configure --prefix=/usr/local/keepalivedmake && make install# 这段配置只是为了使用的方...
分类:
其他好文 时间:
2014-07-01 17:48:39
阅读次数:
215
Live broadcasting with arduinoget a pc , make it run linux. make arduino catch the weather sensor and then transport the information to the PC side. P...
分类:
其他好文 时间:
2014-07-01 12:15:21
阅读次数:
167
一开始是因为curl无法访问https网上说,要重新编译安装curl
我就下载..
./configure
make
make install
结果出现
curl:
(2) Failed Initialization
好吧,我整个人都跪了.
满世界找原因...
找到这个
It means that the curl binary is picking ...
分类:
其他好文 时间:
2014-07-01 08:07:03
阅读次数:
545
①push_heap算法
下面是push_heap算法的实现细节。该函数接收两个迭代器,用来表现一个heap底部容器(vector)的头尾,并且新元素已经插入到底部的最尾端。
template
inline void push_heap(RandomAccessIterator first,RandomAccessIterator last)
{
//注意,此函数被调用时,新...
分类:
其他好文 时间:
2014-06-30 09:25:57
阅读次数:
239
题目链接:http://poj.org/problem?id=2442
题目大意:给出一个m*n的矩阵,从每一行中取出一个数相加,能得到n^m个不同的结果,要求输出其中前n项。
建立一个以n元数组为底层数组的堆,在这里,利用stl中的make_heap,pop_heap,push_heap等函数解决。
1.将第一组数据输入arr1数组,升序排序。
2.将接下来的数据输入到arr2数组中,并...
分类:
其他好文 时间:
2014-06-29 23:25:31
阅读次数:
259