开发者

How to create a selectMode()

I created a method called selectMode(); and I want that method to be able to select a different mode while running. For example I have to different displays 开发者_StackOverflow中文版but only one display will show and if I want to access the other display I want to be able to select it.


You could just add an argument to it:

selectMode( mode );

And either always require that mode be supplied, or create a second overload of selectMode with the argument.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜