STD :: Vector to std :: string conversion

xiaoxiao2021-04-06  318

VC6 can be:

Vector vtchar;

// ......

String strtem;

StRTEM.Assign (VTCHAR.BEGIN (), VTCHAR.SIZE ());

However, the VC2005 will compile an error. However, you can convert another overload of std :: string :: Assign:

Vector vtchar;

// ......

String strtem;

Strtem.Assign (vtchar.begin (), vtchar.end ());

转载请注明原文地址:https://www.9cbs.com/read-132308.html

New Post(0)