cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
vector<char> to string
vector<char> to string
May 22, 2014 at 9:15pm UTC
closed account (
EwCjE3v7
)
How can I initialize a
std::string
from a
vector<
char
>
?
May 22, 2014 at 9:20pm UTC
long double main
(999)
std::string str(myCharVec.begin(), myCharVec.end());
I
think
that should work.
May 22, 2014 at 9:21pm UTC
closed account (
EwCjE3v7
)
Waw how stupid I`m I :)
Thank you ;)
Topic archived. No new replies allowed.