Unable to access const static members in class
<p>I have read this document
<a href="http://stackoverflow.com/questions/1376264/initializing-static-array-of-strings-c">http://stackoverflow.com/questions/1376264/initializing-static-array-of-strings-c</a> and tried to test in my  compiler if  everything would be fine here is copy of code</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;
class MyClass {
public:
    const  static char* MyClass::enumText[];
    };
const  char* MyClass::enumText={"a","b","c","d"};
int main(){

    std::cout&lt;&lt;MyClass::enumText[0]&lt;&lt;endl;


    return 0;
}
</code></pre>

<p>but here is  mistakes</p>

<pre><code>1&gt;c:\users\david\documents\visual studio 2010\projects\class_static\class_static.cpp(9): error C2372: 'enumText' : redefinition; different types of indirection
1&gt;          c:\users\david\documents\visual studio 2010\projects\class_static\class_static.cpp(7) : see declaration of 'enumText'
1&gt;c:\users\david\documents\visual studio 2010\projects\class_static\class_static.cpp(9): error C2078: too many initializers
</code></pre>

<p>i am using visual c++ 2010  and why such mistakes what is wrong?please help</p>
