How about this
Code:#include <iostream> #include <string> const int NUM_OF_STRINGS = 4; int main() { const std::string myStrings[NUM_OF_STRINGS] = { "Hello", "How", "Are", "you?" }; for(int i = 0; i < NUM_OF_STRINGS; i++) { std::cout<<myStrings[i]<<" "; } std::cout<<std::endl; std::cin.get(); return 0; }