メンバー変数の初期化-配列

10142 ワード

static  class Robot{ staticint posLShd[5];//.. }; intRobot::posLShd[5]={250,330,512,600,680};// in .cpp file C++yuyan zai  zeyiu zuoe bha 
classRobot{ private: int posLShd[5]; staticint posLArm[5];// . .public:Robot(): posLShd{250,330,512,600,680}// only C++0x {} ~Robot(); };