C语言源程序的基本结构.PPTVIP

  • 187
  • 0
  • 约4.22千字
  • 约 27页
  • 2018-12-07 发布于天津
  • 举报
C语言源程序的基本结构

C语言源程序的基本结构 三个角度二个样例 The study certainly is not the life complete. But, since continually life part of - studies also is unable to conquer, what but also can make。? - 学习目标 (1)认识C语言源程序 (2)掌握C语言源程序的基本结构 (3)掌握C语言源程序的基本语句 (4)掌握C语言源程序中的标识符 (5)了解C语言源程序中带参数的main函数 (6)了解由多个文件构成的C语言源程序 (7)进一步掌握用VC++6.0调试源程序的步骤 Sp1:在计算机屏幕上输出“Hello, the world”信息。 /*This is the first C program.*/ #include ”stdio.h” int main() { printf(“Hello, the world \n”); return 0; } 1.\n到哪里去了? 2.要输出其他信息,咋办? 3.要输出多行信息,咋办? Sp2:输入两个整数,输出最大整数 #include ”stdio.h” int max(int a,int b) { int m; m=ab?a:b; return m; } int ma

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档