当前位置:国家开放大学(Delphi程序设计)题库

问题:

[填空题]

本程序根据用户选择的运算符对输入的二个操作数进行运算,并显示运算结果。设计界面和运行界面如图所示。其中,运算符是一个含有4个单选按纽的RadioGroup1对象。
 

下面是单击“运算”按钮的事件处理程序,请根据功能要求完成程序填空。

procedure TForm1.Button1Click(Sender: TObject);//运算 
var 
   x1,x2,y :Integer; 
begin 
   x1 := StrToInt( Edit1. ①);
     x2 : = StrToInt( Edit2. ②);   
 Case ③.ItemIndex of    
 0: y := x1 + x2 ;     
1: y := x1 - x2;    
 2: y := x1 * x2;    
 3: y := x1 Div x2;   
 End; 
   Edit3. ④:= IntToStr( ⑤); 
end;

To enable the Database Smart Flash Cache, you configure the following parameters: DB_FLASH_CACHE_FILE = ‘/dev/flash_device_1’ , ‘/dev/flash_device_2’ DB_FLASH_CACHE_SIZE=64G What is the result when you start up the database instance?() [" It results in an error because these parameter settings are invalid."," One 64G flash cache file will be used."," Two 64G flash cache files will be used."," Two 32G flash cache files will be used."] 男性,42岁。因足底被刺伤后出现全身肌肉强直性收缩阵发性痉挛,诊断为破伤风。护理此患者过程中尤其应注意预防() ["休克","窒息","肺部感染","心脏损害","脱水、酸中毒"] “汪记小说”指的是作家()创作的抒情风格的风土小说。 国务院社会保险行政部门负责全国的社会保险管理工作,国务院其他有关部门在各自的职责范围内负责有关的社会保险工作。 怎样理解资产评估的公正性特点?

本程序根据用户选择的运算符对输入的二个操作数进行运算,并显示运算结果。设计界面和运行界面如图所示。其中,运算符是一个含有4个单选按纽的RadioGroup1对象。
 

下面是单击“运算”按钮的事件处理程序,请根据功能要求完成程序填空。

procedure TForm1.Button1Click(Sender: TObject);//运算 
var 
   x1,x2,y :Integer; 
begin 
   x1 := StrToInt( Edit1. ①);
     x2 : = StrToInt( Edit2. ②);   
 Case ③.ItemIndex of    
 0: y := x1 + x2 ;     
1: y := x1 - x2;    
 2: y := x1 * x2;    
 3: y := x1 Div x2;   
 End; 
   Edit3. ④:= IntToStr( ⑤); 
end;

参考答案:

  参考解析

本题暂无解析

在线 客服