【正文】
printf(“jcj”)。 printf(“usst”)。 例如: int a ,b。在“ /*”和“ */”之間的即為注釋。但預(yù)處理命令,函數(shù)頭和花括號“ }”之后不能加分號。 2 每一個說明,每一個語句都必須以分號“ 。 retrun z。 } int sum(int x, int y) { int z。 z=x+y。 } Creating a puter program Creating a puter program Creating a puter program Creating a puter program Creating a puter program 5. The program and user documentation is prepared after the testing is pleted. Creating a puter program 計算機處理問題的過程 C program Structure 源程序文件1預(yù)編譯命令說明部分 執(zhí)行部分函數(shù)1 函數(shù)n源程序文件i 源程序文件nC程序C程序結(jié)構(gòu) C program Structure C program Structure C程序 函數(shù)組成 由若干 函數(shù)說明部分 函數(shù)體 函數(shù)類型說明 函數(shù)名 函數(shù)形參 形參類型說明 變量定義部分 執(zhí)行部分 int sum( x, y ) int x, y。 if (ab) printf(result is: %d\n,a)。a,amp。 8. } 9. 輸出 sum的值; 本次課中需要解決的問題 ? Creating a puter program ? C program Structure Creating a puter program Creating a puter program ? Input a,b ? Compare a,b ? Output max of a,b Cr