$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] concat integer to wstring
From: Lloyd (lloyd_at_[hidden])
Date: 2009-11-12 08:17:39
Hi,
What is the best way to concatanate an integer to wstring?
for example
===========
std::wstring ws=L"str";
for(int i=0;i<10;++i)
{
cout<<ws+i;
}
The output could be
str1
str2
....
str9
Thanks,
Lloyd
______________________________________
Scanned and protected by Email scanner