test

 
 
 
Сообщения:406
[ERROR] COMPILATION ERROR : 
[INFO] ------------------------------------------------------------- /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/AbstractServlet.java:[20,32] package waffle.windows.auth.impl does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/MoveServletImpl.java:[15,46] package org.apache.tomcat.util.http.fileupload does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/PurchaseServletImpl.java:[15,46] package org.apache.tomcat.util.http.fileupload does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[9,1] package jcifs does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[10,17] package jcifs.smb does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[11,17] package jcifs.smb does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[12,17] package jcifs.smb does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[13,17] package jcifs.smb does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[14,17] package jcifs.smb does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[15,18] package jcifs.util does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[16,18] package jcifs.util does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[17,18] package jcifs.http does not exist
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[22,24] cannot find symbol
  symbol:   class LogStream
  location: class mysite.web.filter.NtlmFilter
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[104,19] cannot find symbol
  symbol:   class NtlmPasswordAuthentication
  location: class mysite.web.filter.NtlmFilter
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/AbstractServlet.java:[57,33] cannot find symbol
  symbol:   class WindowsAccountImpl
  location: class mysite.web.servlet.AbstractServlet
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/AbstractServlet.java:[57,61] cannot find symbol
  symbol:   class WindowsAccountImpl
  location: class mysite.web.servlet.AbstractServlet
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/MoveServletImpl.java:[93,42] cannot find symbol
  symbol:   class FileItem
  location: class mysite.web.servlet.EquipMoveServletImpl
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/MoveServletImpl.java:[100,25] cannot find symbol
  symbol:   class FileItem
  location: class mysite.web.servlet.EquipMoveServletImpl
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/PurchaseServletImpl.java:[92,42] cannot find symbol
  symbol:   class FileItem
  location: class mysite.web.servlet.EquipPurchaseServletImpl
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/servlet/PurchaseServletImpl.java:[99,25] cannot find symbol
  symbol:   class FileItem
  location: class mysite.web.servlet.EquipPurchaseServletImpl
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[22,40] cannot find symbol
  symbol:   variable LogStream
  location: class mysite.web.filter.NtlmFilter
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[39,17] cannot find symbol
  symbol:   variable Config
  location: class mysite.web.filter.NtlmFilter
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[40,17] cannot find symbol
  symbol:   variable Config
  location: class mysite.web.filter.NtlmFilter
[ERROR] /D:/Projects/Eclipse Workspaces/MySite/mysite/mysite.web/src/main/java/mysite/web/filter/NtlmFilter.java:[47,17] cannot find symbol
  symbol:   variable Config

my signature
Изменен:29 дек 2013 19:01
 
 
Сообщения:406
import simplegui
import random
import math

# initialize global variables used in your code
range = 100
secret = 5
guess_counter = 7

# helper function to start and restart the game
def new_game():
   global secret, guess_counter
   guess_counter = int(math.ceil(math.log(range, 2)))
   print "New game. Range is", range 
   print "Number of remaining guesses", guess_counter, "\n"
   secret = random.randrange(0, range)

# define event handlers for control panel
def range100():
    # button that changes range to range [0,100) and restarts
    global range, guess_counter
    range = 100
    new_game()

def range1000():
    # button that changes range to range [0,1000) and restarts
    global range, guess_counter
    range = 1000
    new_game()
    
def input_guess(guess):
    if not guess:
        user_input.set_text("Enter a number")
        return
    # main game logic goes here	
    global guess_counter
    guess = int(guess)
    
    print "Guess was", guess
    
    if guess == secret:
        print "Correct!", "\n"
        new_game()
        return
    guess_counter -= 1
    if guess_counter <= 0:
        print "That was the last try, you lost the game. The number was: ", secret, "\n"
        new_game()
        return
    print "Number of remaining guesses", guess_counter
    if guess > secret:
        result = "Lower!"
    else: 
        result = "Higher!"
    print result, "\n"
    
# create frame
frame = simplegui.create_frame("Guess the number", 200, 200)


# register event handlers for control elements
frame.add_button("Range is [0, 100)", range100, 200)
frame.add_button("Range is [0, 1000)", range1000, 200) 
user_input = frame.add_input("Enter a guess", input_guess, 200)                           


# call new_game and start frame
new_game()
frame.start()

# always remember to check your completed program against the grading rubric


my signature
 
Модераторы:LuckysenleftgurookatAlisaTestPetraStillJulikigorss
Сейчас эту тему просматривают:Нет