C语言程序设计笔记-知识点及例题.doc

上传人:b****1 文档编号:133898 上传时间:2022-10-04 格式:DOC 页数:63 大小:265KB
下载 相关 举报
C语言程序设计笔记-知识点及例题.doc_第1页
第1页 / 共63页
C语言程序设计笔记-知识点及例题.doc_第2页
第2页 / 共63页
C语言程序设计笔记-知识点及例题.doc_第3页
第3页 / 共63页
C语言程序设计笔记-知识点及例题.doc_第4页
第4页 / 共63页
C语言程序设计笔记-知识点及例题.doc_第5页
第5页 / 共63页
点击查看更多>>
下载资源
资源描述

C语言程序设计笔记-知识点及例题.doc

《C语言程序设计笔记-知识点及例题.doc》由会员分享,可在线阅读,更多相关《C语言程序设计笔记-知识点及例题.doc(63页珍藏版)》请在冰豆网上搜索。

C语言程序设计笔记-知识点及例题.doc

position-relatedconsumptionofcivilservantshasbeensweptbyfinance,consumer,regardlessofcost,extravaganceandwasteinthecivilserviceposition-relatedconsumption,abuse,corruptionandembezzlement,corruptionisimportant.Then,undertheconditionsofmarketeconomy,howtoreformtheexistingcivildutyconsumptionmanagement,exploresasourcetopreventandcurbthepostconsumptioncorruptionway,iscurrentlyamajorissuefacedbyhonestwork.  Recently,Iconductedresearchonthisissue,thisproblemonsomehumbleopinions.First,theexistingpublicservants'dutyconsumptionthemainproblemsseenfromtheinvestigationandreasons,inrecentyears,publicservants'dutyconsumptioncausedbytheabusesandnotapersonofintegrity,isoneofthemajorproblemsinthepartyinGovernment,itsoperationorderhaveanegativeeffectonthepartyandGovernmentorgans,seriouslydamagingtheimageofthepartyandtheGovernment,underminingtherelationshipbetweenpartyandthemasses,effect,openingupandeconomicconstruction.FromICountyinrecentyearsofgovernancesituationsee,positionsconsumptionintheproducedof"twonot"phenomenonrenderingfourafeatures:

aispositionsconsumptionsystemlosthasdueofbinding,rightisgreaterthanrules,andrightisgreaterthanmethodofphenomenonmorehighlight;IIisinpositionsconsumptionintheCameraObscuraoperation,usingterms,willpositionsconsumptionintohaspersonalconsumption,willcorporatepointstointopersonalpointsto,makespositionsconsumptioninsomeaspectshasintopositionsenjoyandself-dealingofmeans;threeistopositionsconsumptionforname,fraud,falseimpersonator,Trendofnegativecorruptionphenomenasuchascorruptionandmisappropriation;fourpalaces,followthefashion,rivalries,wasteful,andpostconsumptionbecameasymbolofshowingofftheirindividualcapacities.Causedbypublicservants'dutyconsumptionofmany"two"phenomenoninwhichpeoplereflectthebiggestproblemsare:

(a)theofficialcarproblems.Mainlyinthreeaspects:

oneisthelargerbusescostexpenditure.Accordingtostatistics,untilNovember2003,XXCountytownshipDepartmentbus159cars,whichdepartmentownsthebus145vehicles,andshowedanincreasingtrend.Financialexpensescostperbusperyearto35,000yuan,andinfacteverycostupto50,000yuan.Someunitsalsohiringtemporarydriversandexpenditureonwagesandsubsidies.Necessaryto"keepacar",butalso"dependants",leadingtolargerexpenses.Second,gongchesiyongbreedunhealthytendencies.Somepeoplebelievethatnowsomebusdriversuseone-third,one-thirdleadingprivateone-thirdusedforofficialpurposes.Somepublicservants,especiallyleadingofficialsmotoring,carsforprivatepurposes,violatingtheself-disciplineregulations,andevenleadtotrafficaccidents.Accordingtostatisticsfromrelateddepartments,since2004,thecorrectinvestigationinourCountyservesnearly30carsforprivatepurposes,onlythefirsthalfofthisyear,carsforprivatepurposesor

第一章程序设计基本概念

1.1程序和程序设计

程序:

连续执行的一条条指令的集合称为“程序”。

1.1.2程序设计

1.确定数据结2.确定算法3.编码4.在计算机上调试程序5.整理并写出文档资料

1.2算法

定义:

是指为了解决某个特定的问题而采取的确定且有限的步骤。

1有穷性2确定性3可行性4有零个或多个输入5有一个或多个输出

1.3结构化程序设计和模块化结构

结构化程序由三种基本结构组成

1顺序结构2选择结构3循环结构

12)计算机能直接执行的程序是(B)。

A)源程序B)目标程序C)汇编程序D)可执行程序

13)以下叙述中正确的是(D)

 A)程序设计的任务就是编写程序代码并上机调试

 B)程序设计的任务就是确定所用数据结构

 C)程序设计的任务就是确定所用算法

 D)以上三种说法都不完整

第二章:

C程序设计的初步知识

(11)以下叙述中正确的是(C)。

A)C程序的基本组成单位是语句B)C程序中的每一行只能写一条语句

二级C语言程序设计试卷)

C)简单C语句必须以分号结束D)C语句必须在一行内写完

(11)以下叙述中正确的是(C)

A)C程序中的注释只能出现在程序的开始位置和语句的后面

B)C程序书写格式严格,要求一行内只能写一个语句

C)C程序书写格式自由,一个语句可以写在多行上

D)用C语言编写的程序只能放在一个程序文件中

第二课:

C语言的基础知识

2.2标识符,常量和变量

2.2.1标识符:

定义:

由字母,数字和下划线组成,并且第一个字符必须为字母或下划线的。

这样的组成就是标识符。

注意:

在C中大写字母与小字字母被认为是两个不同的字符。

分类:

关键字:

在C中已经定义好了的,不能用作它用的。

如ifdoubleint等等。

预定义标识符:

如printfscanf

用户标识符:

用户根据自己的需求来定义的。

(12)以下选项中,能用作用户标识符的是(C)

A)voidB)8_8C)_0_D)unsigned

(11)以下选项中合法的标识符是(C)

A)1-1B)1—1C)-11D)1—

(12)以下选项中不合法的标识符是(C)

A)printB)FORC)&aD)_00

2.2.2常量:

定义:

是指在程序的执行的过程中,其值不会被改变的量。

分类:

整型常量:

没有小数的常量

如:

391234等等都是。

实型常量:

有小数点的常量

如:

3.93.03.

字符常量:

由单个字符组成的量

如:

’a’‘b’‘3’

字符串常量:

至少由一个字符组成的量

如:

“a”“abc”“beijing”

符号常量:

符号常量的值到底是多少,这是由在来定义符号常量时来决定的

(13)以下选项中,能用作数据常量的是(D)

A)o115B)0118C)1.5e1.5D)115L

(13)以下选项中不能作为C语言合法常量的是(A)。

A)'cd'B)0.1e+6C)"\a"D)'\011'

(13)以下选项中不属于字符常量的是(B)

A)'C'B)"C"C)'\xCC0'D)'\072'

2.3整型常量与实型常量

整型常量的几个表示方法

十进制数:

八进制数:

以0开头的数字,由0-7组成。

下列合法的八进制数是

A,0B,028C,-077D,01.0

十六进制数:

以0X开头,由0-9和A-F组成。

A,oxffB,0xabcC,0x11D,0x19

实型常量123.4

小数形式:

123.4

指数形式:

1.234e2

1.字母e和E之前必须要有数字

2.字母e和E之后的数字必须是整数

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 党团建设

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1