03 2013 档案

sgs_intro
摘要:WHEN YOU NEEDTO BESUREAt SGS, we provide independent services that touch the lives of millions of people across the globe. We provide you with industry leading inspection, verification, testing and certification services – anywhere in the world.Our services enable you to operate in a more sustainabl 阅读全文

posted @ 2013-03-29 23:44 Orz.. 阅读(256) 评论(0) 推荐(0)

把杀某程序封装成sh
摘要:ps -ef|grep app/alm|grep -v grep|awk '{print($1)}'|xargs kill -9 阅读全文

posted @ 2013-03-27 18:42 Orz.. 阅读(187) 评论(0) 推荐(0)

boost 程序库完全开发_ch4_utility
摘要:#include <iostream>#include <boost/utility.hpp>//#include <boost/noncopyable.hpp>//#include <boost/assign.hpp>#include <boost/swap.hpp>#include <algorithm>using namespace std;using namespace boost;#if 0//class X:noncopyableclass X{ X(const X& ); const X& o 阅读全文

posted @ 2013-03-27 11:13 Orz.. 阅读(245) 评论(0) 推荐(0)

boost 程序库完全开发指南_ch3_memory_manager
摘要:ch3的代码块好像还真的不用编译,只需要把代码嵌入即可#include <iostream>#include <memory>#include <vector>using namespace std;#include <boost/smart_ptr.hpp> #include <boost/make_shared.hpp>#include <boost/enable_shared_from_this.hpp>using namespace boost; #if 0struct posix_file //一个示范性质的文件 阅读全文

posted @ 2013-03-26 20:18 Orz.. 阅读(262) 评论(0) 推荐(0)

auto_ptr的不足
摘要:一开始还发现这货挺方便的.后来才发现还是不行,多引用时,就会重复删除了#include <iostream>#include <memory>using namespace std;void func(const auto_ptr<int>& pInt){ cout << *pInt<<endl;}class X{public: X(){cout <<"construct"<<endl;} ~ X(){cout <<"destructor"<&l 阅读全文

posted @ 2013-03-24 23:47 Orz.. 阅读(213) 评论(0) 推荐(0)

boost 程序库完全开发指南_date_time
摘要:下面是看boost 程序库完全开发指南时,date_time(chapter2)时所敲下的代码片断....,不保证其正确性,仅作为一个记录....#include"stdafx.h"#include <vector>#include <string>#include <fstream>#include <windows.h>#include <boost/progress.hpp>#include <iostream>#include <algorithm>using namespace s 阅读全文

posted @ 2013-03-24 22:19 Orz.. 阅读(748) 评论(0) 推荐(0)

cl.exe 的include 及link路径命令行格式
摘要:这两个vc中命令行的编译选项,仅作记录/LIBPATH:"f:\boost\stage\lib"/I "F:/boost" 阅读全文

posted @ 2013-03-24 17:25 Orz.. 阅读(732) 评论(0) 推荐(0)

boost test的测试环境
摘要:试了一下boost 的测试框架,,发现还是可用的正常解开后,如果只是调用BOOST_AUTO_TEST_SUITE(test1)BOOST_AUTO_TEST_CASE(t_test2){ BOOST_CHECK_EQUAL(my_add(2,3), 5);}BOOST_AUTO_TEST_SUITE_END()这几部分好像还真的可以直接内嵌代码中去我把boost 的代码库的src 放进了f:\boost/*t1.cpp*/#define BOOST_TEST_MAIN #define BOOST_TEST_INCLUDED#include <boost/test/included/un 阅读全文

posted @ 2013-03-24 14:12 Orz.. 阅读(273) 评论(0) 推荐(0)

C++ 友元函数
摘要:#include <iostream>using namespace std;class Y;class X{ int _foo;public: X(int n):_foo(n){} void foobar(Y& y);};class Y{ friend class X; int _bar;public: Y(int n):_bar(n){}};void X::foobar(Y& y){ cout << y._bar << endl;} int main() { X x(3); Y y(4); x.foobar(y); return 0; } 阅读全文

posted @ 2013-03-24 08:56 Orz.. 阅读(140) 评论(0) 推荐(0)

AutoHotKey.ini
摘要:; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a; semicolon, such as this one, are comments. They are not executed.; This script has a special filename and path because it is automatically; launched when you run the program directly. Also, any text file whose; name ends in .ahk is a.. 阅读全文

posted @ 2013-03-21 09:36 Orz.. 阅读(556) 评论(0) 推荐(0)

.emacs
摘要:;;start the emacs with the server mode;;(server-start);;close startup screen(tool-bar-mode -1)(menu-bar-mode -1)(setq inhibit-startup-message t)(setq initial-scratch-message "");;显示行号 (global-linum-mode 1);; (global-linum-mode 0);; (define-key key-translation-map [(meta v)] [(control v)])( 阅读全文

posted @ 2013-03-20 15:57 Orz.. 阅读(686) 评论(0) 推荐(0)

导航