问题 填空题

【说明】] 开发一个五笔编码查询系统,界面如图所示。

五笔编码存放在word.txt文件中,它的格式是:<汉字>,<编码>。程序的任务需要以<汉字>为关键字去查询它所对应的编码。根据前面的设计,用两个ComboBox来完成。m_cmbZi存放单字,m_cmbWord存放<汉字>,<编码>序列。当用户输入汉字的时候,在m_cmbZi中查找到相应的序号,然后再对应到 m cmbWord中,这样就完成了查找动作。 把查找出来的序列显示出来,之后再把这个序列送到列表框中,在列表框中保存着最近几次查找的结果,以方便浏览。 【Visual C++代码】 //在m_cmbWord中查找位置、显示并加主到列表框 void CWMPropDlg::OnSelchangeCombozi() { int nSel=m_cmbZi.GetCurSel(); //获得输入汉字的序号 if(-1 != nSel) { (1) ;//查找m cmbWord中五笔编码 m_cmbWord. GetWindowText(m_strLastHit); (2) ; //显示到标签上 CRect rect; (3) ; int nCount = rect.Height()/m_listHitHist.GetltemHeight(0); if( (4) ) { m_listHitHist.DeleteString(0); } m_listHitHist.InsertString(-1,m_strLastHit); m_cmbZi.SetEditSel(0,-1); (5) ; } }

答案

参考答案:m_cmbWord.SetCurSel(nSel)

解析:(2) UpdateDate(FALSE) (3) m_listHitHist.GetClientRect(rect) (4) m_listHitHist.GetCount()>=nCount (5) m_cmbZi.Copy()

判断题
单项选择题

When Dave was eighteen, he bought a secondhand car for 200 so that he could travel to and from work more (1) than by bus. It worked quite well for a few years, but then it got so old, and it was costing him (2) much in repairs that he decided that he had better (3) it.

He asked among his friends to see if anyone was particularly (4) to buy a cheap car, but they all knew that it was falling to pieces, so (5) of them had any desire to buy it. Dave’s friend Sam saw that he was (6) when they met one evening, and said, "What’s (7) , Dave"

Dave told him, and Sam answered, "Well, what about advertising it in the paper You may (8) more for it that way than the cost of the advertisement!" Thinking that Sam’s (9) was sensible, he put an advertisement in an evening paper, which read "For sale: small car, (10) very little petrol, only two owners. Bargain at 50. " For two days after the advertisement first appeared, there was no (11) . But then on Saturday evening he had an enquiry. A man rang up and said he would like to (12) him about the car. "All right, " Dave said, feeling happy. He asked the man whether ten o’clock the next morning would be (13) or not. "Fine, " the man said, "and I’ll (14) my wife. We intend to go for a ride in it to (15) it. "

The next morning, at a quarter to ten, Dave parked the car in the square outside his front door, (16) to wait there for the people who had (17) his advertisement. Even Dave had to (18) that the car really looked like a wreck. Then, soon after he had got the car as clean (19) it could be, a police car stopped just behind him and a policeman got out. He looked at Dave’s car and then said, "Have you reported this (20) to us yet, sir\

18()

A.forget 

B.show 

C.disagree 

D.admit