Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site

Hi! I’m clsung RSS Feed
 
 
 
 

Posts tagged c++

google test 1.4.0 is buggy

It raises lots of error about

… testing::internal::AssertHelper::AssertHelper(testing::TestPartResultType, char const*, int, char const*)…

More Info

From UnitTest++ to GoogleTest

We’ve decided to replace UnitTest++ with googletest

Passing UTF-8 String from C# to Unmanaged C++ DLL

我有個 DLL ,輪入 keystroke 可以傳出文字(不限英文中文)。今年寫了個應用程式,還可以把選出來的文字再傳回去算詞頻。

由 C# 傳 Callback function 給 C++ DLL

一般來說,在 C# 呼叫 C++ 寫的 DLL ,可以用下面的方式來宣告:

how to clear ostringstream?

下面這程式真有清掉嗎?

ostringstream os;

os.clear();
cerr < < os.str()

openmp tutorials – scheduling

目前會的,就是 在 for loop 中, schedule 設為 dynamic 與 guided 的不同。

string to/from wstring conversion

std::wstring s2ws(const std::string& s)
{
    std::wstring temp(s.length(),L‘ ‘);
    std::copy(s.begin(), s.end(), temp.begin());
    return temp;
}

std::string ws2s(const std::wstring& s)
{
    std::string temp(s.length(), ‘ ‘);
    std::copy(s.begin(), s.end(), temp.begin());
    return temp;
}

Update: 好心人提供的文章

噗浪:

  • No public Plurk messages.

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了