`
nuaa_liu
  • 浏览: 25298 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
From: http://www.blogjava.net/killme2008/archive/2010/11/11/337788.html    一直有这么个想法,列一下我个人认为在学习和使用Java过程中可以推荐一读的书籍,给初学者或者想深入的朋友一些建议,帮助成长。推荐的的都是我自己读过,也会 ...

boost::phoenix3

#include <vector> #include <algorithm> #include <iostream> #include <boost/phoenix/core.hpp> #include <boost/phoenix/operator.hpp> int main() { using boost::phoenix::arg_names::arg1; int init[] = { 2, 10, 4, 5, 1, 6, 8, 3, 9, 7 }; std::vector ...
http://blogold.chinaunix.net/u/29619/showart_450675.html-x language filename   设定文件所使用的语言,使后缀名无效,对以后的多个有效.也就是根据约定,C语言的后缀名称是.c的,而C++的后缀名是.C或者.cpp,如果你很个性,决定你的C代码文件的后 ...

loki::typelist

loki的typelist用来形成class的list 依赖于递归行为 只不过在编译期执行   namespace loki { class NullType; struct EmptyType {}; template<class T, class u> struct TypeList { typedef T Head; typedef U Tail; }; typedef TypeList<char, TypeList<signed char, TypeList<unsigned char,Nul ...

vim c++ ide 配置

$HOME需建几个目录   .vim .vim/plugin 放.vim插件 .vim/colors 放配色.vim   cscope和ctags安装的时候需要root权限   具体配置可以参考:http://www.vimer.cn/ 插件下载地址: http://www.vimer.cn/2010/06/%E6%9C%AC%E5%8D%9A%E4%BD%BF%E7%94%A8%E7%9A%84vimgvim%E7%9B%B8%E5%85%B3%E6%8F%92%E4%BB%B6%E6%95%B4%E7%90%86.html 或者: http://www.everb ...

linux命令tips

~/.bash_profile   $vi .bash_profile function mkdircd() {mkdir -p "$@" && eval cd "\"$$#\"";}   设置系统时间 #date -s "01/31/2009 22:19:53"   /*****************************************/ grep -v 显示出所有不包含匹配文本的内容 -c 显示满足模式的行数 grep -ri join /home/us ...

boost::string

<boost/algorithm/string.hpp> <boost/algorithm/string/case_conv.hpp> <boost/algorithm/string/classification.hpp> <boost/algorithm/string/compare.hpp> <boost/algorithm/string/concept.hpp> <boost/algorithm/string/constants.hpp> <boost/algorithm/string/eras ...

vector&&map

#include <algorithm> #include <map> #include <vector> //std::map在insert后是自动排序的,查找的时候可以使用 find std::map<int,string> mapDemo_; if(mapDemo_.find(nKey) != mapDemo_.end()) { //find } //std::vector在push_back()后不会自动排序,可以使用sort进行排序 std:vector(int) vecDemo_; sort(vecD ...
//get current time string char szTime[32] = {0}; time_t lTM = time(NULL); tm *pstTM = localtime(&lTM); strftime(szTime, 32, "%Y-%m-%d %H:%M:%S", pstTM); //struct timeval_a old; struct timeval_a now,interval; gettimeofday_a(&now,0); timersub(&now,&old,&int ...

boost::split

#include "boost/algorithm/string.hpp" #include <stdio.h> #include <string> #include <vector> using namespace std; using namespace boost; int main(int argc,char* argv[]) { /*template<typename SequenceSequenceT, typename RangeT, typename PredicateT> ...

boost_foreach

  1 #include <string> 2 #include <iostream> 3 #include <boost/foreach.hpp> 4 5 #define foreach BOOST_FOREACH 6 7 8 int main() 9 { 10 std::string hello("Hello,World!"); 11 12 foreach(char ch,hello) 13 { 14 std::co ...
今天沟通的不愉快,交接的人想着抛出,被交接的人很无奈。 对于需求感到很迷惑,二传手没有表达清楚,还被问到底能不能实现。 至少结果是好的,提了两种技术解决方案,找到原始提需求的人沟通完毕。 以后还是与需求方直接沟通来的有效。
/*输入参数:随机数位数*/ /*输出参数:随机数*/ boost::mt19937 m_oBoostRandomSeed_; GetRandomNumber(int nDigits) { double dRangeMin = pow((double)10,nDigits); double dRangeMax = pow((double)10,nDigits+1) -1 ; boost::uniform_int<> range(static_cast<int>(dRangeMin),static_cast<int>(dRangeMax ...
//socket基本应用 //erlang程序基本写法 -module(vpl). -export[(run/2)]. -define(IP,"127.0.0.1"). -define(PORT,1777). run(ThreadCount,MsgCount)-> CurrentThreadNo = -1, CurrentMsgNo = -1, swpan_thread(CurrentThreadNo,CurrentMsgNo,ThreadCount,MsgCount). swpan_thread(CurrentThreadN ...

SQL_CASE_1

    博客分类:
  • SQL
表结构: ColNo          Time                      SerialNo 1(p-key)       020111 030201 030301      AxCSAaa SceCC GYAZZ 需要: 根据SerialNo中不同的值(用空格分开)来获取Time中对应位置的值 Time格式是6个一组 select distinct substr(a.Time,SpaceCount*7+1,6) as "时间", a.SerialNo as "序列号" from (select (case when ...
Global site tag (gtag.js) - Google Analytics