C++数据成员怎么初始值设定

class meun
{
public:
static int i;
static int j;
static int k;
static int l;
double price[4]={4,5,7,6 };
string food1=”xxx“;
string food2="xxx";
string food3="xxx";
string food4="xxx";

GCT1015
浏览 956回答 1
1回答

杨__羊羊

定义一个构造函数public: meun(){i = xxx;j = xxx;...}
打开App,查看更多内容
随时随地看视频慕课网APP