05 2012 档案

ICE 简单介绍(Internet Communication Engine)
摘要:1. ICE的一些背景the Internet Communications Engine http://www.zeroc.com/ice.htmlICE 是ZeroC的主要产品, 是一个object-oriented toolkit,用来帮助我们构建分布式应用程序,使我们专注于程序的逻辑而不是底程网络交互的细节ZeroC provides a fast and highly-scalable communications infrastructure for demanding technical applications, such as telecom, defense, fina.. 阅读全文

posted @ 2012-05-29 16:34 小宇2 阅读(6278) 评论(0) 推荐(0) 编辑

std IO库, stringstream, 简看1
摘要:IO Stream Library : Standard Input Output Stream Library, 这是一个面向对象的库, 用流的方式提供input,output功能写了一个关于stringstream的小测试程序 1 #include<string> 2 #include<iostream> 3 #include<sstream> 4 using namespace std; 5 int main () 6 { 7 stringstream ss; 8 int i1 = 123; 9 ss << i1;10 string str 阅读全文

posted @ 2012-05-24 20:10 小宇2 阅读(605) 评论(0) 推荐(0) 编辑

函数对象function object 以及boost::bind的一点了解
摘要:1 function object就是重载了operator()的类的对象, 像如下例子, 其实也许应该说是定义了operator()的类, 在thinking in c++中operator overloading都并没有提到operator() 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 class Wy { 5 public : 6 string operator()(string msg, int a, int b){ 7 cout << "msg = 阅读全文

posted @ 2012-05-18 12:18 小宇2 阅读(856) 评论(0) 推荐(0) 编辑

分隔和截断字符串, boost string algorithm library中的split和trim
摘要:http://www.boost.org/doc/libs/1_46_1/doc/html/string_algo.html这个库是个 headers only library 这个库提供了STL没有提供的 string-related算法, 但是实现做到了可以用在任何 character 的 container上split在写在线状态的改造时候要把一个字符串中描述的几种类型拆出来, 引发了这个问题, 去标准库里找了也没找到, 后来在boost库中找到了string_algo这个库, 以下是我写的一个使用split的例子 1 #include <boost/algorithm/strin 阅读全文

posted @ 2012-05-15 15:20 小宇2 阅读(13603) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示