Re: [問卦] 用if else敘述反對死刑但這個必須死
※ 引述《pchion2002 (阿我就怕被罵阿)》之銘言:
: 各位大師下午好
: 昨天兩名警察領了盒飯
: 造就了有金句產生
: 從程式語言來看下面這句話
: 「我反對死刑但這一定要判死」
: 判斷式要怎麼寫才能成立?
//judges do not sentence people to death
bool death_sentence = False;
//assume that no policemen die
bool kill_policemen = False;
//if no policemen die, the judge would say the following
while(!death_sentence){
printf("judge: be a good person, you shall be pardoned");
//if a policeman dies, the judge will stop pardoning people
//and sentence people to death
if(kill_policemen == True){
printf("May God have mercy upon your soul,
because I won't!");
death_sentence = True;
break;
}
}
--
少分號啦
要include 抗中保台.h還是人權.h
不對吧 你這樣寫變成所有殺警都判死
[error]expected ';' at row 15.
改好了推回來 另外忘記把殺警判斷放
在#ifdef political_scandal_h 判斷
裡面 前面有沒有這個定義compile出來
會差很多
怕你尷尬,幫你推一下,不忍看幾個程式
猿取暖自嗨
7
首Po各位大師下午好 昨天兩名警察領了盒飯 造就了有金句產生 從程式語言來看下面這句話 「我反對死刑但這一定要判死」1
while(有選票) { 廢死; 執行社會安全網; }2
我覺得這個不是if else的關係 應該只是轉型的問題: //原本是反對死刑的宣告 反對死刑 me; //這一定要判死,要轉型X
首Po需求不難 但這應該是要用例外處理才對。 原本想說是不是只有警察適用,但想了一下, 被殺害的對象如果是一般老百姓,才會被說放下仇恨吧? 所以只要今天被殺死的對象是老百姓以外的,應該都要被砰砰 private val isOpposedOfTheDeathPenalty = true
爆
[外絮] 溜馬新秀:很多人說LBJ很強,但他必須展示溜馬六號新秀Mathurin:很多人說LBJ很強,但他必須展示他比我強 It is safe to say Indiana Pacers rookie Bennedict Mathurin is not lacking in con fidence. Just look at his comment about LeBron James, basically saying he wants to see if the talks about the Los Angeles Lakers star is true. 可以肯定的說,溜馬新秀Bennedict Mathurin並不缺乏信心。看看他對LBJ的評論,基本上爆
[花邊] Zion:受傷的低潮期就像是佐助叛離村子Throughout the design process, Williamson and the teams at Jordan and VIZ爆
[外絮] 老巴:KD必須像LBJ或Kobe那樣率隊奪冠,老巴:KD必須像LBJ或Kobe那樣率隊奪冠,抱團奪冠不算數 “You know it has an effect on his legacy,” said Barkley, who was promoting his upcoming appearance at the American City Golf Championship at Tahoe. “If you g o back and look, and I talked about it on the [TNT] show, LeBron has said it bef ore — he said, ‘I had to win a championship without Dwyane Wade and Chris Bosh爆
[花邊] 小李:想留隊,但我不反對被交易Talking with Jabari Young of CNBC, Dame made it clear that he won't say no if th e team wants to trade him, but he doesn't think that's a likely scenario. 在接受CNBC記者Jabari Young的採訪時,小李明確表示,如果球隊想要交易他,他不會拒絕 ,但他認為這種情況不太可能發生。 In an interview with CNBC's Jabari Young, Lillard said: "I have no plans of not爆
[花邊] Lillard:威少球風改變是因為無法一球Lillard:威少球風改變是因為無法一球在手,這是很大的調整 Westbrook's career and legacy is undeniable. That's just the bottom line. The pl ayer, the career he's had what he's accomplished, the things he's done, nobody e lse has been able to do it. Like with all these triple doubles, I don't care if you stat chasing or whatever people want to say. If I try to go every game and g爆
[外絮] 哈登:我不會花時間在網路上與人唇槍舌哈登:我不會花時間在網路上與人唇槍舌劍,這都是浪費時間 I’m going back to the “celebrities, they’re just like us” sentiment, because if you cut him, Harden will bleed. He is one of the rare athletes who puts it a ll out there without putting anything personal out there. And with good reason, given that the media and those ever-present keyboard warriors haven’t always be68
[情報] Djokovic談不能打美網:我不懂這邏輯‘I don’t see the logic’ – Djokovic weighs in on rules preventing him fromp laying US Open “No unvaccinated people can enter the USA as of this moment,” said the 35-ye ar-old. “I did hear unofficially that some people got away with it, some peop56
[情報] KD:Embiid值得一座MVP文章很長 只節錄其中幾段訪問 Kevin Durant said Joel Embiid deserves the MVP. He’s doubtful he’ll win it, though, because the Sixers center is not as likable as the two other leading candidates. KD認為Embiid值得一座MVP。即便他認為不會發生因為鉛筆不像另外兩位候選人(Jokic、Giannis)一樣”被喜歡”。 “There’s a lot of players that’s been controlled by their narrative,” Durant said. “Some of it has been because of the player and some of it has been about the perception other people have about that player. In Joel’s case, more people just like Giannis (Antetokounmpo) and (Nikola) Jokic.1
[問卦] Do you hear the people sing?Do you hear the people sing? Singing a song of angry men? It is the music of a people Who will not be slaves again When the beating of your heart
64
Re: [問卦] 其實高房價的問題政府無能為力吧爆
Re: [問卦] 希特勒的人像畫作就你來看,水準如何?爆
[爆卦] 立法院亂鬥登上國外知名IG媒體爆
[爆卦] 陳菁徽被抱摔還原立法院議事懶人包爆
Re: [爆卦] 全國律師聯合會57
[問卦]原來執政黨可以禁錮國會議長?爆
[問卦] HBD夏筠婷片子被外流了?!74
Re: [新聞] 鄭文燦:立院對總統質詢權 已經踩到憲法38
[問卦] 堂弟美術系沒上 只會演講怎麼辦?爆
Re: [新聞] 強調條文都公開上網 黃國昌:誰說昨天審爆
Re: [新聞] 快新聞/史上最黑箱的立法院! 黃智賢315
[問卦] 萬一高鐵貫通東部,要浪費破兆稅金!!!29
Re: [問卦] HBD夏筠婷片子被外流了?!28
[問卦] 一直搞不懂,長大後時間為何變很快44
[問卦] 90年代超級星期天可以屌打現在所有綜藝嗎26
[問卦] 溥儀是中國第一個被戴綠帽的皇帝嗎 (?)25
[爆卦] 蹦世界數位創意 鄭重致歉16
Re: [新聞] 傅崐萁3大花東建設挨批錢坑!預算要2爆
[問卦] 台灣會失去張韶涵的原因 到底是什麼?9
Re: [爆卦] 全國律師聯合會19
[問卦] 40歲沒結婚是不是沒希望了21
[問卦] 脆是光譜另一端的八卦板嗎23
[問卦] 6歲小孩用注音打字?20
[問卦] 台灣電影擅長的是什麼爆
Re: [爆卦] 台文館道歉了!館長副館長鞠躬謝罪14
[爆卦] 今天是第一年白色恐怖紀憶日17
Re: [問卦] 中國人很羨慕台灣的民主吧?18
[問卦] 以前笑太陽花崩潰怎現在卻想變太陽花?42
[問卦] 女性被抱摔女權團體都沒表示?74
[問卦] 希特勒的人像畫作就你來看,水準如何?