有多種寫法啊:
一、如果a定義為整型:a:Integer
if (a>=1 ) and (a我這樣寫你看對嗎a : Charbeginif a in ['1','2','3','4','5'] then b := 'c'elseb:=''end正確,不過要寫對地方!vara : Char;b,c : string;beginf a in ['1','2','3','4','5'] then b := 'c'elseb:=''end;
delphi if a in[1,2,3,4,5] then b='c' else b=''
delphi if a in[1,2,3,4,5] then b='c' else b=''
如果a等于1,2,3,4,5時b等于c,否則等于空 這個句子在delphi報(bào)表里面怎么寫?
如果a等于1,2,3,4,5時b等于c,否則等于空 這個句子在delphi報(bào)表里面怎么寫?
英語人氣:655 ℃時間:2020-05-22 15:34:40
優(yōu)質(zhì)解答
我來回答
類似推薦
- delphi中if then else語句怎么寫.舉個最簡單的例子
- Delphi中if c then 與if c=true then 的區(qū)別?
- A=2:b=1:c=0 if a then if b then if c then Print “1” else Print “2” else Print “3” else Print
- 12、語句if 3*4>=10 then a=1 else a=2 執(zhí)行后,a的值為( ). A、12 B、10 C、1 D、2 選什么,why
- 四通八達(dá)中“達(dá)”什么意思
- 天地不仁,以萬物為芻狗.
- 用血球計(jì)數(shù)板計(jì)算酵母細(xì)胞總數(shù):對稀釋100倍后的酵母菌懸液計(jì)數(shù),若80小格中細(xì)胞數(shù)
- 富者乞羊 譯文
- 高中數(shù)學(xué)課程中的“函數(shù)”的結(jié)構(gòu)脈絡(luò)
- 描寫水的優(yōu)美句子
- 試證明:對于任意大于4的合數(shù)p,(p-2)!能被p整除.或舉出反例.
- the monkey is( ) than the bear.A.thinner B.fatter C.thin
猜你喜歡
- 1世博會中國館的太陽能光伏發(fā)電系統(tǒng) 年均提供電能為1.08*10^13J,這意味著每年節(jié)約標(biāo)準(zhǔn)煤為( )噸(設(shè)標(biāo)準(zhǔn)煤完全燃燒,q煤=3.0*10^7J/kg)
- 2l理發(fā)師翻譯成英語
- 3在下列幾種現(xiàn)象中,系統(tǒng)動量守恒的是
- 4王老師在新華書店購買了《童話精選》和《科學(xué)家的故事》一共花了116元,童話每本2
- 51 she also tried to teach him __ to be quiet because other people wanted to rest.A when B where
- 6求滿足條件:頂點(diǎn)在原點(diǎn),關(guān)于x軸對稱,并且經(jīng)過點(diǎn)M(2,-4)的拋物線的標(biāo)準(zhǔn)方程,并求出此拋物線的準(zhǔn)線方程.
- 7“鐵錘錘碗錘不碎”.這句話覺得荒謬的理由是什么?覺得有道理的理由是什么?
- 8如圖,已知直線L1平行L2,且L3和L1、L2分別交于A、B兩點(diǎn),點(diǎn)P在直線AB上.
- 9什么無間
- 10333分之33乘101怎樣簡便計(jì)算
- 11用總分總的形式寫一篇作文
- 121.What do you not like?還是What don't you like?Why do you not like?還是Why don't you like?