第一章 簡單的順序程式

2021-07-08 18:52:59 字數 886 閱讀 5709

1.1 a+b問題

//小朋友:

#include

int main()

//犇犇:

#include

int main()

1.2 比較char型的ascii碼大小

//小朋友:

#include

int main()

else

return

0;  }

//犇犇:

#include

int main()

1.3 有關四則運算的練習

//小朋友:

#include

int main()

//犇犇:

#include

int main()

1.4 開方

//小朋友:

#include

#include

int main()

//犇犇:

#include

#include

int main()

1.5 ascii碼前一位符號

//小朋友:

#include

int main()

//犇犇:

#include

int main()

1.6 三角形三點座標確定面積

//小朋友:

#include

#include

double sqr(double x)

int main()

//犇犇:

#include

#include

double sqr(double x)

int main()

第一章實驗 簡單的C 程式

實驗目的和要求 1.熟悉code blocks 16.01編譯系統的常用功能。2.學會使用code blocks 16.01編譯系統實驗的c 程式。3.熟悉c 程式的基本結構,學會使用簡單的輸入 輸出操作。實驗內容 1.編譯下列程式,改正所出現的錯誤資訊,並寫出輸出結果。執行結果如下 修改程式如下 ...

python第一章筆記 第一章 基礎

參與除法的兩個數中有乙個數為浮點數,結果也為浮點數 如 1.0 2,1 2.0,1.0 2.0 python print 1.0 2 結果 0.5 print 1 2.0 結果 0.5 print 1.0 2.0 結果 0.5 整數 整數,計算結果的小數部分被截除,只保留整數部分 不會四捨五入 如 ...

Spring 第一章 簡單示例

一 spring簡單demo 1.引入jar檔案 springframework core.jar springframework beans.jar springframework context.jar springframework context support.jar 2.編寫配置檔案 p...