英語小說單字筆記中2026-2-19

圖片
tamely(テイムリー・ていむりー) 溫順地;順從地 The horse followed him tamely . 馬は テイムリー にかれについていった。 那匹馬溫順地跟著他走。 knotty(ノッティ・のってぃ) 多結的;棘手的;複雜的 It’s a knotty problem to solve. それはとても ノッティ な問題だ。 那是一個相當棘手的問題。

&& 的邏輯

你的邏輯好嗎?
來寫個程式驗證&&的邏輯吧XDDD哈哈哈哈

#include <iostream>
#include <cstdlib> 
using  namespace std;
int main()
{
    bool x = 0;
    bool y = 0;
    cout << x << "&&" << y << "的結果是" << (x && y) <<endl;
    
    x = 0;
    y = 1;
    cout << x << "&&" << y << "的結果是" << (x && y) <<endl;
    
    x = 1;
    y = 0;
    cout << x << "&&" << y << "的結果是" << (x && y) <<endl;
    
    x = 1;
    y = 1;
    cout << x << "&&" << y << "的結果是" << (x && y) <<endl;
    
          
    system("pause");
    return 0;

}

留言