【正文】
} /*****************密碼修改子程序 ********************************/ char change(char code_old[6]) //返回 1表明應(yīng)該修改密碼, 0表示不修改 { int i=0。 bit temp。 char code_new1[6] 。 char code_new2[6]。 DisplayListChar(0,0,SET NEW CODE ) 。 temp= get_code(code_new1)。 if(temp==0) return 3。 DisplayListChar(0,0, NEW CODE AGAIN ) 。 temp=get_code(code_new2)。 if(temp==0) return 3。 if (code_judge(code_new1,code_new2)==1) { int i=0。 for(i=0。i6。i++) code_old[i]=code_new2[i]。 return 1。 } else { return 0。 31 } } /******************************主程序 ************************/ Void main() { unsigned char code_yuan[6]={0x09,0x02,0x05,0x08,0x02,0x04}。 //定義初始密碼 uchar Operation。 //用于暫存鍵值 ,模式設(shè)置 ,單變量 initLCM()。 EA=1。 EX0=1。 Write24c02(code_yuan,0x00,6)。 //植入初始密碼 ,第一次編程使用 START: DisplayListChar(0,0, ***WELCOME*** ) 。 DisplayListChar(0,1,SELECT OPREATION) 。 Operation=key_scan()。 //等待操作按鍵 Buzzer = 0。 //蜂鳴器提示有輸入 Delay(2021)。 Buzzer = 1。 switch (Operation) { case 0x0c: case 0x1c : //按下開(kāi)鎖鍵 進(jìn)入開(kāi)鎖模式,遙控操作碼是 0x1c { char code_save2[6]。 //開(kāi)辟數(shù)組,用于讀取當(dāng)前密碼 char temp。 Read24c02(code_save2,0x00,6)。 //將讀取的密碼存入數(shù)組 AA: DisplayListChar(0,0,UNLOCK Operation)。標(biāo)簽 DisplayListChar(0,1,CODE: )。 temp=open(code_save2)。 //判斷是否開(kāi)鎖動(dòng)作 if( temp==1) //密碼正確,開(kāi)鎖 { Lock=0。 delayms(200)。 Lock=1。 } if(temp==0) //密碼錯(cuò)誤,返回繼續(xù)開(kāi)鎖 { delayms(100)。 goto AA。 } goto START。 //開(kāi)鎖 CANCEL } case 0x0d: case 0x1f: //按下 SET 鍵 進(jìn)入 SET 模式 { char code_save2[6]。 32 char First_re。 Read24c02(code_save2,0x00,6)。 //讀取當(dāng)前密碼 BB: DisplayListChar(0,0,SET CODE MODE )。 //提示輸入當(dāng)前密碼 DisplayListChar(0,1,CURRENT CODE: )。 delayms(100)。 Firstcode: DisplayListChar(0,0,CURRENT CODE )。 First_re=open (code_save2)。 //核對(duì)輸入當(dāng)前密碼是否正確 if( First_re==1) //第一次輸入正確,開(kāi)始輸入新密碼 { char Second_re。 delayms(80)。 Second_re=change(code_save2)。 if( Second_re==1 ) //后兩次密碼對(duì)比正確,更改密碼 { DisplayListChar(0,0,SET CODE RIGHT )。 DisplayListChar(0,1, )。 Write24c02(code_save2,0x00,6)。 // 將更新后的密碼存入 AT24C02 delayms(200)。 } if(Second_re==0) //后兩次輸入不吻合,直接退出 { DisplayListChar(0,0,SET CODE WRONG )。 DisplayListChar(0,1, )。 Warning=0。 Buzzer=0。 //錯(cuò)誤聲光提示 delayms(50)。 Warning=1。 Buzzer=1。 delayms(20)。 Warning=0。 Buzzer=0。 delayms(50)。 Warning=1。 Buzzer=1。 goto BB。 } else goto START。//設(shè)置密碼模式,第二次或是第三次輸入過(guò)程中有 CANCEL要求,退出該模式 } if(First_re==0)//輸入當(dāng)前密 碼錯(cuò)誤,提示繼續(xù)輸入當(dāng)前密碼 goto Firstcode。 goto START。 //在設(shè)置密碼模式,第一次輸入密碼過(guò)程中,有 CANCEL 要求,退出該模式 } default : goto START。//第一次按鍵不是【開(kāi)鎖】與【 SET】則不動(dòng)作 } } 33 謝 辭 光陰如梭,時(shí)光飛逝,四年的大學(xué)生活即將結(jié)束。四年充實(shí)的大學(xué)生涯,沉浸在書(shū)的海洋里,讓我學(xué)會(huì)了學(xué)習(xí),學(xué)會(huì)了用智慧去思考人生。四年的大學(xué)生涯,不僅教給了我們知識(shí),同時(shí)也教給我們?cè)S多高貴的人生品質(zhì)。揮別大學(xué) 之際,感謝這四年最富有熱情的青春,感謝每一個(gè)相互勉勵(lì)一起進(jìn)步的人們,感謝讓我成長(zhǎng)的大學(xué)。氣有浩然,學(xué)無(wú)止境 —— 將一直激勵(lì)我們堅(jiān)韌、謙遜、永不止步,將一直支持我們樂(lè)觀自信的面對(duì)一切挑戰(zhàn) 。 34 g an employment tribunal clai Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s antiracism taskforce, is in London for the Football Association39。s 150th anniversary celebrations and will attend City39。s Premier League match at Chelsea on Sunday. I am going to