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.
加载中,请稍侯......
精彩评论