示例#1
0
        private int big; // moved to instance variable

        public static void Main()
        {
            int       bound = UI.PromptInt("Enter a secret number bound: ");
            GuessGame game  = new GuessGame(bound); // need Game object

            game.Play();                            // call no-parameter instance method on game
        }
 public static void Main()
 {
     int bound = UI.PromptInt("Enter a secret number bound: ");
      GuessGame game = new GuessGame(bound);  // need Game object
      game.Play();   // call no-parameter instance method on game
 }