Download 69 car wrap free vectors. Choose from over a million free vectors, clipart graphics, vector art images, design templates, and illustrations created by artists worldwide! 10 Tips to design vinyl vehicle wraps in Adobe Illustrator. To doublecheck measurements between your digital template and the actual vehicle.
Active13 days ago
I am trying to write a program that has a vector of char arrays and am have some problems.
Sorry this has to be a char array because I need to be able to generate lists of chars as I am trying to get an output something like.
a aa ba ca da eb ab c
Can anyone point me in the right direction?
Thanks
aHunter
aHunteraHunter1,61088 gold badges3030 silver badges4343 bronze badges
6 Answers
You cannot store arrays in vectors (or in any other standard library container). The things that standard library containers store must be copyable and assignable, and arrays are neither of these.
If you really need to put an array in a vector (and you probably don't - using a vector of vectors or a vector of strings is more likely what you need), then you can wrap the array in a struct:
and then create a vector of structs:
anon
You need
Of if you meant to make a vector of character instead of a vector of strings,
The expression
TronicTronicsizeof(test)/sizeof(*test)
is for calculating the number of elements in the array test.8,83111 gold badge3434 silver badges4848 bronze badges
Prasoon SauravPrasoon Saurav73k3939 gold badges225225 silver badges327327 bronze badges
You can use boost::array to do that:
Edit:
Or you can use a vector of vectors as shown below:
missingfaktormissingfaktor67.5k5151 gold badges255255 silver badges350350 bronze badges
You can directly define a char type vector as below.
![Ford vehicle wrap design tool Ford vehicle wrap design tool](/uploads/1/2/5/5/125527049/285801142.jpg)
MAOXUMAOXU
What I found out is that it's OK to put char* into a std::vector:
Nicholas HumphreyNicholas Humphrey