C程序设计语言(英文版)--已改格式..doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CHAPTER 1 - A TUTORIAL INTRODUCTION Let us begin with a quick introduction in C. Our aim is to show the essential elements of the language in real programs, but without getting bogged down in details, rules, and exceptions.At this point, we are not trying to be complete or even precise (save that the examples aremeant to be correct). We want to get you as quickly as possible to the point where you canwrite useful programs, and to do that we have to concentrate on the basics: variables andconstants, arithmetic, control flow, functions, and the rudiments of input and output. We areintentionally leaving out of this chapter features of C that are important for writing biggerprograms. These include pointers, structures, most of Cs rich set of operators, several control-flow statements, and the standard library. This approach and its drawbacks. Most notable is that the complete story on any particularfeature is not found here, and the tutorial, by being brief, may also be misleading. Andbecause the examples do not use the full power of C, they are not as concise and elegant asthey might be. We have tried to minimize these effects, but be warned. Another drawback isthat later chapters will necessarily repeat some of this chapter. We hope that the repetitionwill help you more than it annoys. In any case, experienced programmers should be able to extrapolate from the material in thischapter to their own programming needs. Beginners should supplement it by writing small,similar programs of their own. Both groups can use it as a framework on which to hang themore detailed descriptions that begin in Chapter 2. GETTING STARTED The only way to learn a new programming language is by writing programs in it. The firstprogram to write is the same for all languages: Print the words hello, world This is a big hurdle; to leap over it you have to be able to create the program text somewhere,compile it successfully, load it, run it, and find out where your output went. With th

文档评论(0)

wuyuetian + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档