码迷,mamicode.com
首页 >  
搜索关键字:boost date    ( 29191个结果
boost字符串算法
boost::algorithm简介2007-12-08 16:59boost::algorithm提供了很多字符串算法,包括: 大小写转换; 去除无效字符; 谓词; 查找; 删除/替换; 切割; 连接; 我们用写例子的方式来了解boost::algorithm能够为我们做些什么。boost::al...
分类:其他好文   时间:2014-05-08 14:30:18    阅读次数:397
Js获取当前日期时间及其它格式化操作
Js获取当前日期时间及其它操作 var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0....
分类:Web程序   时间:2014-05-08 11:44:58    阅读次数:351
boost::bind实践2——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
直接代码:代码段1: 1 #include 2 #include 3 #include 4 5 class some_class 6 { 7 public: 8 typedef void result_type; 9 void print_string(const ...
分类:编程语言   时间:2014-05-08 09:49:53    阅读次数:368
跳板机定期改密码脚本
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash # source/etc/profile&>/dev/null basedir=$(cd`dirname$0`;pwd) nowmonth=`date+%m` nowday=`date+%d` email="$basedir/email/sendemail.sh" functionGaiMiMa(){ user="$1" passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:其他好文   时间:2014-05-07 22:26:08    阅读次数:951
ACE_Message_Queue介绍(生产者/消费者)
下面的两个线程共享一个消息队列,一个用来放整数到队列,一个从队列里取消息出来。此程序在控制台不停的输出递增数字,主要是内存不会泄露 用到了多线程、ACE_Message_Queue、ACE_Message_Block、ACE_Thread_Manager::instance()->spawn等 #include using namespace std; #include "boost/lex...
分类:其他好文   时间:2014-05-07 21:29:38    阅读次数:476
boost::bind实践
第一部分源码为基础实践: 1 /*Beyond the C++ Standard Library ( An Introduction to Boost )[CN].chm*/ 2 /*bind的用法*/ 3 4 #include 5 #include 6 #include 7 #includ...
分类:其他好文   时间:2014-05-07 21:27:36    阅读次数:536
SQL从一张表更新另一张表
update 表1 set 表1.A=表2.A from 表2where表1.B=表2.B
分类:数据库   时间:2014-05-07 21:19:42    阅读次数:425
Ubuntu - Dconf 注册表键值修改参考表
gsettings reset org.gnome.desktop.wm.preferences theme默认gnomegsettings set org.gnome.desktop.interface clock-show-date true顶部面板显示日期gsettings set org.g...
分类:其他好文   时间:2014-05-07 21:06:13    阅读次数:401
meta program (1) swap_iter
开始学习模板元编程了 #include #include #include #include #include "boost/assign/list_of.hpp" #include "boost/type_traits/is_const.hpp" #include "boost/type_traits/is_reference.hpp" #include "boost/type_tr...
分类:其他好文   时间:2014-05-07 16:32:27    阅读次数:358
linux 常用命令
1.date   date "+%y/%m%d %h/%m/%s %j"...
分类:系统相关   时间:2014-05-07 15:08:14    阅读次数:350
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!