摘要: 一个是:curl ifconfig.me另一个是:curl ipinfo.io这个输出的信息很丰富,如城市,地区,国家,经纬度等都能显示,如下面:{ "ip": "223.68.142.242", "hostname": "No Hostname", "city": null, "reg... 阅读全文
posted @ 2014-11-20 15:33 venid 阅读(3142) 评论(0) 推荐(0) 编辑
摘要: http://www.sky.fm/mp3/newage.plshttp://www.sky.fm/mp3/nature.plshttp://www.npr.org/streams/mp3/nprlive24.plshttp://www.vpr.net/vpr_files/stream_playli... 阅读全文
posted @ 2014-11-17 17:52 venid 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 在c++中,我们想获取一个对象的地址,直接&(取地址符)就可以,但是如果一个了类重载的&运算符,我们怎么获取它的对象的地址呢?如:#include #include using namespace std;class foo{public: int operator&(){ re... 阅读全文
posted @ 2014-09-04 15:13 venid 阅读(380) 评论(0) 推荐(0) 编辑
摘要: sigslot is a head only signal slot lib,written by Sarah Thompson.原始仓库是http://sourceforge.net/projects/sigslot/文档是http://sigslot.sourceforge.net/sigslo... 阅读全文
posted @ 2014-08-09 22:38 venid 阅读(1715) 评论(0) 推荐(0) 编辑
摘要: 以下是一些ABC Radio 的pls链接:vlc打开网络串流,输入pls链接,确定即可。Direct LinksIf you are unable to use our default players, you can use these links.Windows Audio StreamsAB... 阅读全文
posted @ 2014-05-05 15:28 venid 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 在algorithm文件中有查找的算法,不过它是顺序查找的,它的实现是这样的templateInputIterator find(InputIterator first, InputIterator end, const T& key){ while(first != end) { ... 阅读全文
posted @ 2013-07-29 10:39 venid 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 查找就是在一系列数据中寻找指定的数据,有顺序查找和折半查找(又叫二分法查找),顺序查找是将这系列数据从头至尾的遍历一次,挨个的比较,较费时,但不要求数据有序的,而折半查找则要求数据是有序的,因为它先将要查找的数与序列中中间的那个数比较,假定序列是升序的,那么如果查找的数大于中间的数,则只需要在序列的... 阅读全文
posted @ 2013-07-28 18:10 venid 阅读(5068) 评论(0) 推荐(0) 编辑