The C Language程式语言初体验.pptVIP

  • 1
  • 0
  • 约3.06千字
  • 约 19页
  • 2019-12-23 发布于湖北
  • 举报
scanf()的應用 #include stdio.h #include stdlib.h int main(){ int a, b, c; printf(Enter the first value:); scanf(%d, a); printf(Enter the second value:); scanf(%d, b); c = a + b; printf(%d + %d = %d\n , a, b, c); system(PAUSE); return 0; } The C Language 程式語言初體驗 2010/03 C語言程式結構— 認識Dev-C++ My first program #include stdio.h //使用printf()函數 #include stdlib.h //使用system()函數 int main( ) //程式主體函數 { printf(“Welcome to TFG\n); system(PAUSE); return 0; } C語言程式結構(Cont.) 函數與變數之組成 Statement(指令描述):函數中用來描述運

文档评论(0)

1亿VIP精品文档

相关文档