cout<<endl <<"Pick a lucky star" <<" Enter a number between 1 and " <<sizeof stars /sizeof stars[0]<<": "<<endl <<"一维的大小:"<<sizeof stars[0]<<"二维的大小:"<<sizeof stars[0][0]<<endl; cin>> choice;
if(choice >= 1 && choice <=sizeof stars /sizeof stars[0]) cout<<endl <<"Your lucky star is "<< stars[choice - 1]; else cout<<endl <<"Sorry , you haven't got a lucky star."; cout<<endl; return 0; }