- 5
- 0
- 约1.14万字
- 约 14页
- 2017-08-30 发布于江苏
- 举报
C 学习记要
C语言基础
1.C程序的基本概念 : .c -(.obj(.exe 2.C程序设计的步骤:分析(算法(代码(测试(后续操作
3.算法:就是对问题求解的步骤进行描述(程序流程图、伪代码、N-S流程图) 算法的基本特点:有穷性、可行性、确定性、输入与输出。
例:输入两个数,求其最大数。
4.结构化的程序设计:顺序、选择、循环、函数(模块)
5.一个基本的C语言程序:
#include stdio.h main()
{
int x,y; /* 定义了两个整型数X和Y ;*/
/* x=x+y; */
;
scanf(“%d%d”,x,y); /*从键盘上输入两个整型数放入X和Y中;*/
if(xy) /*判断两个数的大小*/
rintf(“The max number is %d\n”,x);
else
printf(“The max number is %d\n”,y);
}
C语言的基本元素:标识符、运算符、分隔符、其它特殊符号。Char(short int(int(long(float(double
特殊运算符:++ -- , * ( ) . - [
您可能关注的文档
- C语言课程设计+推箱子游戏_IT168文库.doc
- C语言试题、学习、考试大全28.doc
- C语言试题、学习、考试大全26.doc
- C语言试卷及答案.doc
- C语言试题、学习、考试大全21.doc
- C语言设计报告模板0320费下载.doc
- C语言设计报告.doc
- c语言视频教程.doc
- C语言自学网板书.doc
- C语言考试题库--综合.doc
- fao -延绳钓和竿钓渔业的最佳实践处理方法 Best practice-handling for handline and rod-and-reel fisheries.pdf
- forescout -太阳 落下 通过协调开发太阳能发电系统来破坏电网稳定 SUN -DOWN Destabilizing the Grid via Orchestrated Exploitation of Solar Power Systems.pdf
- ICAT -气候融资透明度指南 Climate Finance Transparency Guide.pdf
- GAO -退伍军人医疗保健 改善外国医疗计划所需采取的行动 Veterans Health Care -Actions Needed to Improve the Foreign Medical Program.pdf
- fao -渔业共同管理能力发展区域间研讨会报告 Report of the Interregional Workshop on Fisheries Co-management Capacity Development.pdf
- fao -中美洲、南美洲和加勒比地区高致病性 H5N1 禽流感紧急情况及应对措施 Emergencia y respuesta a la influenza aviar de alta patogenicidad H5N1 en América Central, América del Sur y el Caribe.pdf
- gao -小企业试点计划:美国小企业管理局有机会评估结果并加强欺诈风险缓解措施 Small Business Pilot Program -SBA Has Opportunities to Evaluate Outcomes and Enhance Fraud Risk Mitigation.pdf
- fao -香蕉种植园减少碳足迹和水足迹的方法指南 Methodological guide to reduce carbon and water footprints in banana plantations.pdf
- fao -兽医准专业人员培训和商业环境需求评估 Veterinary paraprofessional training and business environment needs assessment.pdf
- fao -小规模渔业部门中对性别问题有敏感认识的鱼类损失评估方法 A gender-responsive methodology for fish loss assessment in the small-scale fisheries sector.pdf
原创力文档

文档评论(0)