今日初學C語言寫的幾個程式。

2021-09-13 01:39:16 字數 677 閱讀 8324

給定兩個整型變數,交換兩個整型變數的內容輸出最終值。

#include #include int global = 2019;

int main ()

求10個整數中的最大值。

#include #include #define _crt_secure_no_warnings

int main()

;

printf("請任意輸入10個整數:");

for(i=0; i<10; i++)

max = arr[0];

for(i=1; i<10; i++) }

printf("最大的數為:%d", max);

system("pause");

return 0;

}

輸入三個數,從大到小按順序輸出。

#include #include #define _crt_secure_no_warnings 

void bijiao (int* x,int* y)

int main()

printf("最大公約數為:%d\n",a);

system("pause");

return 0;

}

初學寫的幾個autoit小程式

哈哈,剛學,很簡單的乙個而已 僅僅在xp sp3 chs系統中測試過 send r winwaitactive class 32770 沒有使用標題,而是使用類,為了防止英文版等系統不相容 send cmd winwaitactive class consolewindowclass send ec...

今日寫專案遇到的幾個問題

1.用active class新增選中樣式 第乙個導航按鈕 選中或不選中 都有樣式 v for data in tablist key data.id to data.path tag li active class active exact iconfont class data.icon i p...

C語言寫的掃雷小程式

還記得上初中那會,上資訊課都在電腦上玩的掃雷嗎?那時候只會玩,不知道怎麼實現,現在有了這個能力,也寫了乙個,雖然很糙,但還是能湊合玩的。廢話不多說,直接上 define crt secure no warnings 1 ifndef game h define game h include incl...