怎么在类的私有成员中定义二维数组并初始化

如何在类的私有成员中定义二维数组并初始化




#include "stdafx.h"
#include"lab5_2.h"
#include<iostream>
using namespace std;


class CLIENT
{
public:
static void CHangeServerName()
{
cin>>ServerName[1];
}
void add()
{
ClientNum++;
}
void show()
{
cout<<ServerName[1]<<" ClientNum is "<<ClientNum<<endl;
}
private:
static char ServerName[3][25];
static int ClientNum;
};
char CLIENT::ServerName[3][25]="CLIENT";//wrong
int CLIENT::ClientNum=0;
int client()
{
int num;
char ch;
CLIENT Client;
cout<<"do you want to change de name of CLIENT y or N"<<endl;
cin>>ch;
if(ch=='y'||ch=='Y')
{
Client.CHangeServerName();
}
cout<<"how many ClientNum do you want to add"<<endl;
cin>>num;
for(int i=0;i<num;i++)
{
Client.add();
}
Client.show();
return 0;
}
二维数组 c++

------解决方案--------------------
char CLIENT::ServerName[3][25] = { "string1", "string2", "string3" };