出版時間:2011-10 出版社:清華大學(xué)出版社 作者:巴拉古路薩米 頁數(shù):549
Tag標(biāo)簽:無
內(nèi)容概要
本書是印度各大學(xué)使用最廣的c語言程序設(shè)計經(jīng)典教材之一,這是其最新的第5版。
本書以簡單而清晰的語言,教授讀者如何使用c語言進(jìn)行程序設(shè)計。全書貫徹了“用示例學(xué)習(xí)”的概念。在深入介紹了c語言的每個特性之后,給出了一個完整的示例程序,用于演示說明其應(yīng)用。每章末尾的“案例學(xué)習(xí)”不僅介紹了把c語言的特性集成在一起的常用方法,而且還顯示了它在實際生活中的應(yīng)用。最后一章介紹了開發(fā)高效、無錯誤的c程序的一些指導(dǎo)原則。
本書在前一版的基礎(chǔ)上增加介紹了c99的一些新特性,并增加了不少復(fù)習(xí)題和項目設(shè)計題,而且在附錄iv中給出了4個完整的應(yīng)用程序開發(fā)示例,使得本書的實際應(yīng)用性更強(qiáng)。
作者簡介
作者:(印度)巴拉古路薩米(E Balagurusamy)
書籍目錄
1 overview of c
2 constants, variables, and data types
3 operators and expressions
4 managing input and output operations
5 decision making and branching
6 decision making and looping
7 arrays
8 character arrays and strings
9 user-defined functions
10 structures and unions
11 pointers
12 file management in c
13 dynamic memory allocation and linked lists
14 the preprocessor
15 developing a c program: some guidelines
appendix i: bit-level programming
appendix ii: ascii values of characters
appendix iii: ansi c library functions
appendix iv: projects
appendix v: c99 features
bibliography
index
章節(jié)摘錄
版權(quán)頁:插圖:Test for correct output is done using test data with known results for the purpose of comparison. The most important consideration here is the design or invention of effective testdata. A useful criteria for test data is that all the various conditions and paths that the processing may take during execution must be tested. Program testing carl be done either at module(function)level or at program level .Modulelevel test,often known as unit test,is conducted on each of the modules to uncover errorswith in the boundary of the module. Uhit testing becomes simple when a module is designed to perform only one function. Once all modules are unit tested,they should be integrated together to perform the de.sired function(s).There are likely to be interfacing problems. such as data mismatdl be.tween the modules. An integration test is performed to discover errors associated with inter-facing. Program Debugging Debugging is the process of isolating and correcting the errors. One simple method ofdebug-ging is to place print statements throughout the program to display the values of variables. It displays the dynamics of a program and allows US to examine and compare the information at various points.0nce the location of an error is identifled and the error corrected,the debugging statements may be removed. We Can use the conditional compilation statements,discussed in Chapter 14,to switch on or off the debugging statements. Another approach is to use the process of deduction. The location of an error is arrived atusing the process of elimination and refinement. This is done using a list of possible causes of the error.The third error-locating method is to backtrack the incorrect results through the logic of the program until the mistake is located. That is,beginning at the place where the symptomhas been uncovered,the prograln is traced backward until the error is located.
編輯推薦
《標(biāo)準(zhǔn)C程序設(shè)計(第5版)(影印版)》是大學(xué)計算機(jī)教育國外著名教材系列之一。
圖書封面
圖書標(biāo)簽Tags
無
評論、評分、閱讀與下載
標(biāo)準(zhǔn)C程序設(shè)計 PDF格式下載