返回首页

嗨,我开发一个游戏,这个游戏可以保存在变量的成绩,在积分榜上始终是可见的形式,并不断更新每次球员获胜,现在我不能真正弄清楚,我怎么能显示这些分数。我开发的代码给出了一个转换错误
我在做什么错在这里......

int player = 0; //variable//

            if (cnt == 4)   //if this condition is met//

                player++;   //value of the variable should be incremented//

                textBox1.text = player;  //value of the variable should be displayed on the form//

代码样本或替代品,将有助于

回答

评论会员: 时间:2