How to make a array of string whith is constans ?
How to make it with #DEFINE ?
constans array of string?
Moderator: Board moderators
Code: Select all
#include <iostream>
#include <string>
using namespace std;
string myStrings[] = {"hello", "world", "funny", "isn't", "it"};
int main() {
cout << myStrings[1] << endl; // prints "world"
}