title: How to create an array of C-strings?
body: <p>So I would just like to create an array of C-strings in C++. Yes, I know that C++ uses the string data type, but what I'm working on requires me to make an array of C-strings. C-strings themselves are an array of chars. So would making an array of C-strings be just like making a two-dimensional char array? And then to access each individual char I would need to specify its respective row and column position. However, I would like to imagine this as a single-dimensional array of C-strings, where every index returns a complete C-string. How can I do that? Please explain. How do I loop through such an array and print out or return every C-string instead of having nested loops to return every char separately? </p>