Microsoft
Software
Hardware
Network
Question : How do I print to a CString?
I have a vector of integers defined by vector <int> vIntegers.
Values were put into the vector using the .push_back method.
How do I get the integers from the vector to a CString such that the CString would look something like:
12, 31, 42, 53, 64
notice that the integers are separated by commas, and I would like to use the FIFO method such that the value first pushed into the vector is the first value to appear in the CString....
Answer : How do I print to a CString?
It's a bit easier using 'CString::AppendFormat', i.e.:
CString result;
for (int i = 0; i < v.size(); ++i)
{
result.AppendFormat("%d, ", v[i]);
}
ZOPPO
Random Solutions
IIF Statement
how to see Public folder in address book window
SQL Server 2008 work with GTM date
TS profiles v2 for Windows Server 2008 are empty
DNS record for 'new' accepted Exchange domain
Using jquery to hide dynamically added divs
ArcServe - how to notify via email
inbound email delays from different sources
can someone explain to me the difference between OLAP and ROLAP
scan my windows website for vulnerabilities