Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

Archive for 八月 29th, 2008

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: 好心人提供的文章


噗浪:

  • clsung 已經 買了上週發現的好吃快炒店的炒麵。 5 hours 前
  • clsung 說 原來老師已經回來了。 10 hours 前
  • clsung 說 為了怕在家裡洗頭到一半瓦斯沒了,今天一定要來去游泳 *握拳* 10 hours 前

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan