constans array of string?
Posted: Thu Jun 08, 2006 12:25 am
How to make a array of string whith is constans ?
How to make it with #DEFINE ?
How to make it with #DEFINE ?
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"
}