最近在迁移公司的make系统到cmake上,发现cmake的function参数很奇怪。例如,如果我们向一个function传递list作为参数,在function中,形参会变成如下状况:
set(SRC)
list(APPEND SRC a.cpp b.cpp)
list(APPEND SRC c.cpp d.cpp)
function(tst_arguments src_list)
me...
分类:
其他好文 时间:
2014-08-05 03:05:18
阅读次数:
317
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-08-05 00:48:58
阅读次数:
248
用Eclipse在线安装的方式:Help-->Install New Software地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾上后点击Next安装maven插件时遇到了如下的错误:Cannot complete the install ...
分类:
其他好文 时间:
2014-08-04 13:42:47
阅读次数:
255
方法均来自网络,本人只是记录一下自己操作的过程,大神请无视之~攻击主机平台:kali-linux 被攻击主机:安卓手机192.168.1.107 (在同一局域网内)1.利用ettercap进行arp欺骗:root权限下打开ettercap:ettercap -C (curses UI) ...
分类:
其他好文 时间:
2014-08-03 20:32:55
阅读次数:
382
要安装 readline , readline-dev 开发包,要么使用 --without-readline 选项关闭 readline 功能。#yum install readline;#yum install readline-dev;readline 也就是命令行编辑,关闭的话,你直接用ps...
分类:
数据库 时间:
2014-08-03 20:22:15
阅读次数:
424
输入一个字符串S,再输入一个字符c,要求在字符串S中查找字符c。如果找不到则输出“Not found”;若找到则输出字符串S中从c开始的所有字符。输入格式:输入在第1行中给出一个不超过80个字符长度的、以回车结束的非空字符串;在第2行中给出一个字符。输出格式:在一行中按照题目要求输出结果。输入样例1...
分类:
其他好文 时间:
2014-08-03 15:09:15
阅读次数:
145
【Phong Shading】 The most serious problem with Gouraud shading occurs when specular highlights are found in the middle of a large polygon. Since these....
分类:
其他好文 时间:
2014-08-03 12:43:25
阅读次数:
223
[root@node1/]#yuminstallpython-pip-ypipinstallpython-novaclientpipinstallpython-ceilometerclientpipinstallpython-cinderclientpipinstallpython-glanceclient-haserrorwheniinstallpipinstallpython-heatclientpipinstallpython-keystoneclientpipinstallpython-neutron..
分类:
编程语言 时间:
2014-08-03 07:57:55
阅读次数:
443
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze was changed and the way he came in was lost.He realized that the bo...
分类:
其他好文 时间:
2014-08-02 23:31:54
阅读次数:
274
mysql5.5开始,源码配置编译工具configure变成了cmake,所以先要去把cmake装上。并安装make,bison,cmake,gcc-c++,ncurses的包去http://www.cmake.org/cmake/resources/software.html 下载cmake./c...
分类:
数据库 时间:
2014-08-02 23:19:44
阅读次数:
427