const string mehrdimensionales Array
-
Hi!
Ich habe folgenden Code, der aber mit "too many initializers" nicht kompiliert (Dev-Cpp):
[cpp]
const string foo[2][3] =
{
{"blub", "blablub"},
{"foo", "foo"},
{"blub", "blablub"},
};Was stimmt daran nicht? Danke für jede Hilfe

-
Sorry, hier noch mal richtig:

const string foo[2][3] = { {"blub", "blablub"}, {"foo", "foo"}, {"blub", "blablub"} };
-
const string foo[3][2] = { {"blub", "blablub"}, {"foo", "foo"}, {"blub", "blablub"} };