华南农业大学:《C程序设计》第一章 C语言概述

计算机公基课果程 程序设计 ●主讲:刘汉兴 华南农业大学信息学院
程序设计 主讲:刘汉兴 计算机公共基础课程 华南农业大学信息学院

课程说明 课程名称:C程序设计 课程性质:必修 课程学时:66(36/30) 课程学分:3 考核方式:考试 课程实验:课后布量,上机检查并登记
课程说明 课程名称:C程序设计 课程性质:必修 课程学时:66(36/30) 课程学分:3 考核方式:考试 课程实验:课后布置,上机检查并登记

第一章C语言概述
第一章 C语言概述

关于程序设计语言 程序设计语言的发展 计算机系统=硬件系统+软件系统 1.面向机器语言 ※机器语言和汇编语言 2.面向过程(数据加工过程)语言: sc fortran pascal, basic 3.面向对象语言:如c++ 4.智能化语言
程序设计语言的发展 计算机系统=硬件系统+软件系统 1.面向机器语言 ※ 机器语言和汇编语言 2.面向过程(数据加工过程)语言: 如c,fortran,pascal,basic 3.面向对象语言:如 c++ 4. 智能化语言 关于程序设计语言

为什么学C语言 1.C语言功能强大,表达能力强 2.生成的目标程序效益高,可移植性好 3.既具有高级语言的优点,又有低级语言特色 4.C语言又是面向对象程序设计的基础 5.应用面非常广泛
为什么学C语言 1.C语言功能强大,表达能力强 2.生成的目标程序效益高,可移植性好 3.既具有高级语言的优点,又有低级语言特色 4.C语言又是面向对象程序设计的基础 5.应用面非常广泛

本章主要内容 鲁C语言历史 C语言的特点 C语言的上机步骤
本章主要内容 C语言历史 C语言的特点 C语言的上机步骤

C语言的历史 鲁C语言的来源 ●目前标准为87 ANSIC ●上课上机均采用 TUrbo o 鲁不同于C++,VC
C语言的历史 C语言的来源 目前标准为87 ANSI C 上课上机均采用Turbo C 不同于C++,VC

C语言程序简介(一) 例1:简单的输出语句 main printf((“ This is an example of c language.\n”)
例1:简单的输出语句 C语言程序简介(一) main( ) { printf( “This is an example of C language. \n” ); }

C语言程序简介(二) 例2:简单的计算功能 maino inta,b,sum;/*定义变量*/ a=123;b=456;sum=a+b; printi(" sum Is%dn",sum);/输出结果*
C语言程序简介(二) 例2:简单的计算功能 main() { int a, b, sum; /* 定义变量 */ a = 123; b = 456; sum = a + b; printf( “sum is %d \n”, sum ); /* 输出结果 */ }

C语言程序简介(三) 例3:函数调用 Void maino) t int a, b. c scanf(“%d,%d”,aa,&b) C=max(a, b) printf("max= %d \n",c) int max( int x, int y) i int z 计f(x>y)z=x; else z=y return(z):
C语言程序简介(三) 例3:函数调用 Void main( ) { int a, b, c; scanf( “%d, %d”, &a, &b ); c = max( a, b ); printf( “max = %d \n”, c ); } int max( int x,int y ) { int z; if( x > y ) z = x; else z = y; return( z ); }
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 华南农业大学:《C程序设计》第九章 预处理命令.ppt
- 华南农业大学:《C程序设计》第八章 函数.ppt
- 华南农业大学:《C程序设计》第七章 数组的概念及应用.ppt
- 华南农业大学:《C程序设计》第六章 循环控制.ppt
- 华南农业大学:《C程序设计》第五章 选择结构程序设计.ppt
- 华南农业大学:《C程序设计》第四章 最简单的C程序设计.ppt
- 华南农业大学:《C程序设计》第三章 C语言基础.ppt
- 华南农业大学:《C程序设计》第二章 程序的灵魂一算法.ppt
- 华南农业大学:《C程序设计》第十一章 结构体与共用体.ppt
- 华南农业大学:《C程序设计》第十章 指针.ppt
- 《网页设计技术教程》第9章 创建站点和文档.ppt
- 《网页设计技术教程》第8章 Dreamweaver MX概述.ppt
- 《网页设计技术教程》第7章 设计站点.ppt
- 《网页设计技术教程》第6章 表单.ppt
- 《网页设计技术教程》第5章 网页特效的制作.ppt
- 《网页设计技术教程》第4章 图像、表格与框架.ppt
- 《网页设计技术教程》第3章 网页基本操作.ppt
- 《网页设计技术教程》第2章 FrontPage 2002概述.ppt
- 《网页设计技术教程》第20章 图像的优化.ppt
- 《网页设计技术教程》第1章 网站设计与网页.ppt
- 《Mathematics for Computer》Lecture 13 induction1.pdf
- 《Mathematics for Computer》Lecture 11 Logic.pdf
- 《Mathematics for Computer》Lecture 12 proofs.pdf
- 《Mathematics for Computer》Lecture l4 induction 2.pdf
- 《Mathematics for Computer》Lecture15 induction 3.pdf
- 《Mathematics for Computer》Lecture 16 numtheory 1.pdf
- 《Mathematics for Computer》Lecture 17 numtheory2.pdf
- 《Mathematics for Computer》Lecture19 graphs 2.pdf
- 《Mathematics for Computer》Lecture l8 graphs1.pdf
- 《Mathematics for Computer》Lecture 12 recur2.pdf
- 《Mathematics for Computer》Lecture 10 sums 1.pdf
- 《Mathematics for Computer》counting 1.pdf
- 《Mathematics for Computer》Sums, Approximations, and Asymptotics II.pdf
- 《Mathematics for Computer》Counting Il.pdf
- 《Mathematics for Computer》Counting III.pdf
- 《Mathematics for Computer》Generating functions.pdf
- 《Mathematics for Computer》Conditional Probability.pdf
- 《Mathematics for Computer》Introduction to Probability.pdf
- 《Mathematics for Computer》1 Independent Events.pdf
- 《Mathematics for Computer》Random variable.pdf