jinyedge's note
{http://www.jinyedge.pe.kr}


Hi, this is jinyedge. I'm a software developer. I hope you can find some useful information in my homepage.


jinyedge at gmail.com
Since 2001.12.05

 

 
Subj Cont
 
Subj: C++, edgexx.hxx, edgexx.cxx.
Mtime: 2010-08-12 00:51:51
File1: edgexx_test.tgz, 5KB

/*
- Author: jinyedge
- Comment:
*/
#include <stdio.h>
#include <assert.h>
#include <vector>
#include <time.h>
#include "edgexx.hxx"

using namespace edgexx;

//---------------------------------------------------------------------
int main(int argc, char* argv[]){
    string line = "     123456789      ";
    cout << line << endl;

    line = trim(line);
    cout << line << endl;
    
    line = replace(line, "456", "kkk");
    cout << line << endl;

    vector<string> v = split(line, "kkk");
    print_lines(v);

    Config* cfg = new Config("./ex.cfg");
    cfg->print_values();

    int max_client_num = cfg->get_int("max_client_num");
    printf("max_client_num = %d\n", max_client_num);

    cout << str_ftime(time(NULL)) << endl;

    char buf[15];
    string k = NULL;
    cout << k.size() << endl;

    return 0;
}