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
Converting between vector types..
Converting between vector types..
Dec 1, 2014 at 1:25am UTC
shamieh
(161)
Suppose I want to put the elements of a
vector<
char
> CharVec
into a
vector<myObjectss> MyVectorofObjects
? I can't find any good examples when it comes to dealing with vector types...How would I do this?
Dec 1, 2014 at 1:27am UTC
giblit
(3750)
The only way that would work is if you can implicitly convert from char to myObjects or you would have to convert first then put in the other vector.
Topic archived. No new replies allowed.