freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java實(shí)訓(xùn)標(biāo)準(zhǔn)化考試系統(tǒng)(cs版)(參考版)

2025-07-17 16:17本頁面
  

【正文】 拼一個(gè)春夏秋冬!贏一個(gè)無悔人生!早安!—————獻(xiàn)給所有努力的人.學(xué)習(xí)參考。不奮斗就是每天都很容易,可一年一年越來越難。是狼就要練好牙,是羊就要練好腿。 return message。 int length=(length1,length2)。 //用戶已提交的答案個(gè)數(shù)。 } } return score。 if((i)==(i)) score++。imin。 int min=(length1,length2)。 //用戶提交的第i題答案在 selection中的位置。 } public int getScore(){ score=0。 } public void setSelection(String s){ selection=selection+s。 } } catch(Exception e){ testContent=試題內(nèi)容為空,考試結(jié)束??!。 } } testContent=new String(temp)。 完成考試=true。 //關(guān)閉和文件的連接。 if((endend)){//整個(gè)試題文件的結(jié)束標(biāo)志。 break。 while((s=())!=null) { //繼續(xù)讀取某個(gè)試題內(nèi)容。 StringBuffer temp=new StringBuffer()。 } public String getTestContent() //獲取試題的內(nèi)容。 } public void set完成考試(boolean b){ 完成考試=b。 } } public String getFilename(){ return filename。 //將用時(shí)轉(zhuǎn)換成毫秒單位。//獲取用時(shí)的“秒”值。//獲取用時(shí)的“分”值。//獲取用時(shí)的“時(shí)”值。 StringTokenizer token=new StringTokenizer(temp,:)。 String temp=(()).trim() 。 //讀取試題文件的第1行: correctAnswer=(()).trim()。 in=new FileReader(f)。 ()。讀取!=null){ ()。 try { if(in!=nullamp。 //用戶選擇了新的試題文件后,將用戶的答 案字符串清空,并將分?jǐn)?shù)重置為0。public void setFilename(String name{ filename=name。 FileReader in=null。 //判斷是否已完成全部試題。 //該試題文件的考試用時(shí)。 //用戶的得分。 //存放用戶提交的答案。 testContent= , //試題內(nèi)容。public class ReadTestquestion{ String filename=, //存放試題文件名的字符串。 } } }}(5)import .*。 } catch(Exception eee){ } (客戶離開了)。 (分?jǐn)?shù):+score+\n+messages)。 } else if((查看得分)){ int score=()。 //將用戶提交的 答案依次尾加到selection。 } } else if((提交的答案:)){ //獲取用戶提交的答案。 通知考試界面考試用時(shí)=false。 //將當(dāng)前試題文件的考試用時(shí)發(fā)給客戶端。//將試題的內(nèi)容發(fā)送給客戶端。 //讀取一道試題。//服務(wù)器需通知客戶端新試題文件 的考試用時(shí)。 (false)。 //獲取客戶 端選擇的試題文件名。 } (已經(jīng)全部列出:)。i++) { (考試文件:+fileName[i])。 for(int i=0。 String fileName[]=(fileTxt)。 File dir=new File(當(dāng)前目錄)。 //等待(堵塞本線程,直到收到 消息)客戶端發(fā)來的信息。 } public void run(){ while(true){ String s=null。 out=new DataOutputStream(())。 Server_thread(Socket t){ socket=t。 ReadTestquestion 讀取試題=null。 DataOutputStream out=null。 Socket socket=null。 } else{ continue。 (客戶端的IP:+address)。 //建立與客戶端連接的套接字。 } catch(IOException e1) { (正在監(jiān)聽)。 Socket you=null。 } public boolean accept(File dir,String name){ return (str)。String str=null。import .*。 } } } } (4)import .*。 } (5)。 } if((考試結(jié)束:)){ ()。 //計(jì)時(shí)器開啟,每隔1000毫秒“振鈴”一次。 (+time)。 } if((考試用時(shí):)){ String str=((:)+1)。 (s)。 if((試題內(nèi)容:)){ //讀取服務(wù)器端發(fā)來的一道試題。 //等待(堵塞本線程。 } catch(IOException ee) { } } }public void run(){ while(true){ String s=null。 } } try{ (提交的答案:+answer)。 box[i].setState(false)。i4。 (false)。 try { (讀取下一題)。 (true)。 (剩余時(shí)間:+leftHour+小時(shí) +leftMinute+分+leftSecond+ 秒)。 long leftSecond=leftTime%60。 long leftMinute=(leftTimeleftHour*3600)/60。 long leftHour=leftTime/3600。 } long leftTime=time/1000。 (false)。則用戶停止答題。 }public void actionPerformed(ActionEvent e){ if(()==計(jì)時(shí)器){ time=time1000。 (顯示考試用時(shí)(倒計(jì)時(shí)))。 (false)。 try{ ()。 =in。 } public long getTime(){ return time。 (p2)。 (new GridLayout(2,1))。 (考試用時(shí)提示條)。 (查看得分)。 (提交該題答案)。 Panel p1=new Panel()。 (答案顯示區(qū),)。 (new BorderLayout())。 } setLayout(new BorderLayout())。i4。 Panel pAddbox=new Panel()。 (this)。 (false)。 (true)。 ()。 查看得分=new Button(查看得分)。 } 提交該題
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1