assuming void foo(const char*)
call
foo(zombies[42].m_dna);
More Related Contents:
- How do I compare chars (or strings) using void functions, also comparing chars that were taken from a struct array
- can’t extract data from a structure array c++ [closed]
- what does this error mean in general? and how I fix it in this case? [closed]
- Why do C and C++ support memberwise assignment of arrays within structs, but not generally?
- Is the memory allocated for struct members continguous? What if a struct member is an array?
- Structure of Arrays vs Array of Structures
- Casting double array to a struct of doubles
- c++ sort with structs
- too many initializers for ‘int [0]’ c++
- Getting a segmentation error when printing my array of strings
- Structure size so big, need optimization
- i dont know this use of struct and pointers
- Using local variable outside its scope
- Determine if int is not 0 with no if statements
- Array of vectors
- Regarding time out in code
- What are the differences between struct and class in C++?
- Struct padding in C++
- View array in Visual Studio debugger? [duplicate]
- Iterate through Struct and Class Members [duplicate]
- What is the default value for C++ class members
- Store an int in a char array?
- More elegant way to check for duplicates in C++ array?
- How define an array of function pointers in C
- How do I return a char array from a function?
- Need help using qsort with an array of structs
- How to reliably get size of C-style array?
- Are non dereferenced iterators past the “one past-the-end” iterator of an array undefined behavior?
- How do I create an array of pointers?
- How can I use a custom type as key for a map in C++?