Àâòîðèçàöèÿ
Ïîèñê ïî óêàçàòåëÿì
Waite M., Prata S., Martin D. — C Primer Plus. User Friendly Guide to the C Programming Language
Îáñóäèòå êíèãó íà íàó÷íîì ôîðóìå
Íàøëè îïå÷àòêó? Âûäåëèòå åå ìûøêîé è íàæìèòå Ctrl+Enter
Íàçâàíèå: C Primer Plus. User Friendly Guide to the C Programming Language
Àâòîðû: Waite M., Prata S., Martin D.
Àííîòàöèÿ: The C language combines the efficiency and speed of assembly language with the structure and conciseness of Pascal. Consequently, over 80 percent of the software community is using C today. This revised and expanded edition of C Primer Plus presents everything that you need to immediately start using this exciting language, and more. The book's time-tested organization encourages you to solve problems, ask questions, and work exercises. Used in schools as a complete course in C programming, the book offers these features:
· Compatibility with UNIX™ and MS-DOS@
· Organization suited to beginners as well as advanced users
· Well-proven approach to such introductory concepts as data, I/O, strings, and loops
· Explanations of arrays and pointers, file I/O, bit fiddling, storage classes, macro functions, access to 8088 ports, structures, redirection, IBM@ PC sound, and graphics access
New topics added to this updated edition include:
· Information on C++, the successor to the C language, recently created by AT&T for "object-oriented programming"
· Details on the new American National Standards Institute (ANSI) C language standard-what is new and how to write programs that conform to it C Primer Plus, Revised Edition, is the perfect companion to the Sams/Waite UNIX Primer Plus, and is compatible with any IBM PC implementation of C that conforms to the Kernighan and Ritchie standard.
ßçûê:
Ðóáðèêà: Òåõíîëîãèÿ /
Ñòàòóñ ïðåäìåòíîãî óêàçàòåëÿ: Ãîòîâ óêàçàòåëü ñ íîìåðàìè ñòðàíèö
ed2k: ed2k stats
Èçäàíèå: revised edition
Ãîä èçäàíèÿ: 1987
Êîëè÷åñòâî ñòðàíèö: 557
Äîáàâëåíà â êàòàëîã: 10.12.2005
Îïåðàöèè: Ïîëîæèòü íà ïîëêó |
Ñêîïèðîâàòü ññûëêó äëÿ ôîðóìà | Ñêîïèðîâàòü ID
Ïðåäìåòíûé óêàçàòåëü
Not equal to operator 138
Not, logical 181 513
Null address, and gets( ) function 386—387
Null characters, in character strings 66—67
null statements 156 213
Number-crunching program 157—158
Number-guessing program 209—210
O prefix for octal number 44—45
Object code 9—10 12
octal numbers 535
Octal numbers, conversions of, and printf( ) function 82
Octal numbers, prefix for 44—45
Octal numbers, representation of ASCII codes by 50
Offset, with fseek( ) 457
One's complement operation 528
Opening, file 450—451 486—487
operands 97—98
operators, address see "Addresses and address operations"
operators, arithmetic 95—112 121 491 512—513
operators, assignment see "Assignment operations"
Operators, bit 527—531
operators, cast 120—121 515
Operators, comma 217—220 515
operators, conditional 191—192 515
operators, decrement see "Decrement operation"
Operators, equal to 164 173—174
operators, increment see "Increment operation"
Operators, indirect membership 426—428 514
operators, indirection 266—267 271 513
operators, logical 179—183 513 527—529
Operators, membership 418 427 514 530
operators, modulus 105
operators, OR 181 513 528
Operators, overloading of, in C++ 496
Operators, pipe 148
Operators, pointer 353—356 513
Operators, redirection 145—147
operators, relational 173—180 513
operators, shift 529—530
Operators, sizeof 58—59 69—70 121 515
Operators, symbols for 511—515
operators, union 433—435 514
Options, program, and command-line arguments 403
or, bitwise 528
Or, logical 181 513
Order of evaluation, for comma operations 219
Order of evaluation, of logical operations 182
Order of evaluation, of subexpressions 113
Outp( ) function, and ports 155
Output 316 see
Output, and ports 155
Output, character string 376—377 388—391
Output, putchar( ) function 134—144
Output, redirection of 145—147
Output, with printf( ) see "Printf( ) function"
Overflow, and modulo arithmetic 83
Overflow, floating-point 55
Overflow, integer 47
Overload and overloading, in C++ 496—497
Ox prefix hexadecimal numbers 44—45
Padding, of field structures 531
Parentheses, and macros 328 330—332
Parentheses, for operation precedence 102—104
Parentheses, in type declarations 437—438
Parentheses, with arguments 24—25
Parentheses, with cast operations 120
Parentheses, with for statements 212
Parentheses, with functions 18 21 26
Parentheses, with sizeof 70
Parentheses, with switch statements 194
Pascal, assignment and equality operators in 173
Pascal, compared to C 3
Pipe operator 148
PL/I, assignment and equality operators in 173
Pointers 265—272
pointers and arrays 344—367 379—380
Pointers and character strings 382—384 386
Pointers and functions and arrays 349—367
Pointers and structures 424—428
Pointers to characters 386
Pointers to functions 386
Pointers, constants 266 348
Pointers, operations with 353—356 513
Pointers, variables 266 348
Portability 4
Portability and C standards 479—480
Portability and conditional compilation 327
Portability and input-output functions 133
Portability and typedef 436
Ports, input-output 152—156 538
Postfix mode, for increment operation 106—109
Precedence, of arithmetic operations 102—104
Precedence, of increment operation 111
Precedence, of logical operations 181—182
Precedence, of modifiers 437—438
Precedence, of operator symbols, list of 511—512
Precedence, of relational operations 178—179
Precedence, of value operation 349
Precision, in printf( ) function 79 85
Precision, of floating-point numbers 42 53
Prefix mode, for increment operation 106—109
Preprocessor, and symbolic constants 66 70—75 325—338
Preprocessor, C 21
Prime number program 225—227
Printf( ) function 20 26 36—38 52
Printf( ) function, and character strings 68 81
Printf( ) function, and newline character 25—26
Printf( ) function, and unsigned integer types 48
Printf( ) function, compared to puts( ) function 389
Printf( ) function, compared to scanf( ) function 84
Printf( ) function, formatting with 72 75—83 85—87
Printf( ) function, in ANSI C 487
Printf( ) function, of characters 52
Printf( ) function, of floating-point numbers 55 80—81
Printf( ) function, of integer values 45 48 79—80
program control see "Control structures"
Program files, names for 8
Programmable Parallel Interface Controller (8255) 153—154 538
Programming techniques, algorithms and pseudocode 208
Programming techniques, and column printing 86—87
Programming techniques, and goto statements 230—232
Programming techniques, and interaction 37
Programming techniques, and readability 27—28 491
Programming techniques, and storage classes 294
Programming techniques, and symbolic constants 71—72 328
Programming techniques, and type names 435—436
Programming techniques, and variable names 23
Programming techniques, defensive programming 313
Programming techniques, design 317—318
Programming techniques, for braces in while loops 116
Programming techniques, for data types 59
Programming techniques, for getint( ) function 301—308
Programming techniques, for sorting program 308—317
Programming techniques, keyboard input 235
Programming techniques, modularity 237
Programming techniques, protective programming 294
Programming, in C, overview of 7—12
Programming, opportunities in, and C 5
Programs and statements 113
Programs, structure of 26—27
Promotions, and type conversions 117—118 488
Protective programming 294
Pseudocode, and algorithms 208
Punctuation characters, testing for 460
Putc( ) function 452
Putchar( ) function 134—144
Puts( ) function, and character strings 388—389
Puts( ) function, compared to printf( ) function 389
Puts( ) function, creation of 390—391
Quotation marks see "Double quotes" "Single
R mode, with fopen( ) function 450
R+ mode, in ANSI C 486
Ragged arrays 382—383
Random access file input-output 456—459
Random number function 294—301
Range, of floating-point numbers 53
Range, of signed integers 43
Range, of unsigned integers 46
Ranking, of data types 117
Readability, program, and enumerated types 491
Readability, program, techniques for 27—28
Real numbers see "Floating-point numbers"
rectangular arrays 382—383
Recursion 280
Redirection, of files 144—150
Register and register variables 293—295 519
Registers, microprocessor 153
relational expressions 173—178
Relational operations 173—180 513
Remainder operation 105 512
Replacement strings, and macros 326
Return value, of scanf( ) function 239—241
Return, and functions 259—262 265 277
Return, and functions, and void function type 481
Rewind( ) function, and fopen( ) 487
Right shift operation 529
Ritchie, Dennis 3
Ritchie, on goto statement 229
Ritchie, The C Programming Language 223 479—480
Roundoff errors, and double 119
Roundoff errors, and floating-point numbers 42 174
Runners, program for 122—123
scalar variables 343
Scanf( ) function 36—38 83—86 85—86
Scanf( ) function, and character strings 66
Scanf( ) function, and static storage class 67—68
Scanf( ) function, compared to gets( ) function 387—388
Scanf( ) function, compared to printf( ) function 84
Scanf( ) function, return value of 239—241
Scientific notation 53
Scope, and storage classes 287—295 519
Scoreread program 235—237
Seeds, for random number generation 294-295
Semicolons, and #define 71
Semicolons, for structure templates 415
Semicolons, in statements 22 26 28 113—114
Semicolons, with for 212—213
Shift operations 529—530
short 46—47 117 517
Side effects, and local variables 263
Sign operator 98
Signed data types 43 49 56
Single quote, escape sequence for 51
Single quote, for characters 49—50
Single-character input-output 134—144
Sizeof operation 58—59 121 515
Sizeof operation, compared to strlen( ) function 69—70
Sketch program, character 184—191
Skipping facility, for scanf( ) function 85—86
Sorting programs, for character strings 398—400
Sorting programs, for numbers 308—317
source code 9
source files 9
Spacing, in macro definitions 332
Speaker, port for, in IBM PC 153—154
Speed, and compilation 12
Speed, and double 491
Speed, computation, and long int data types 46
Stack, and argument-passing 488
Standard input 144 see
Standard library functions, accessing 447—448
Standard library functions, and ANSI C 485—486
Standard library functions, and portability 480
Standard library functions, and underscore symbol 23
Standard library functions, character string 385—397 459—465
Standard library functions, file 448—459 469
Standard library functions, for memory allocation 465—469
Standard systems directories, and #include 333
Standards, ANSI 479—494
statements 113—117
statements, assignment 20 24—25 114
Statements, braces for 19
Statements, declaration 22—23
Static and static variables 67 291—292 295 519
Static and static variables, and character strings 377—378
Static arrays, initialization of 344—346 378
Stdio.h file 20—21 135
Stoi( ) function, creation of 304—307
Stop signals, for array input 238—239 310
Storage classes 519
Storage classes, and initialization of arrays 344—347
Storage classes, and scope 287—295
Storage classes, C++ 494—500
Storage units 347—349
Storage, memory see "Memory allocation"
Strcat( ) function 392—393
Strcmp( ) function 393—396
Strcpy( ) function 396—397
strings see "Character strings"
Strlen( ) function 66 68—70 392
Strlen( ) function, compared to sizeof 69—70
Stroustrup, Bjarne, The C++ Programming Language 494
Struct and structures 413—415
Struct and structures, and ANSI C 482—485
Struct and structures, and functions 428—433
Struct and structures, and pointers 424—428
Struct and structures, arrays of 419—424 431—433
Struct and structures, bit 529—531
Struct and structures, operators for 514
Struct and structures, templates for 415 417
Struct and structures, variables 416—418
Structured programming, and C 4 see
Structured statements 115
subexpressions 112—113
Subscripts, array 234—235 344
Subtraction operation 98 102—104
Subtractive assignment operation 218 220
switch statements 192—197 524—525
Symbol groups, in print statements 26
Symbolic constants, and C preprocessor 66 70—75 325—328
Symbols, for syntax see "Specific symbol names" "Braces" "Brackets"
Symbols, operator 511—514 527—531
System calls, and UNIX 486
Tabs 26
Tabs, and scanf( ) function 68
Tabs, escape sequence for 26 51
Tags, in structure templates 415 417
Tags, union 434
Templates, structure 415 417
templates, Union 434
Test condition, in for loops 212—217 522
Test condition, in while loops 115
Testing, of characters 459—462
Text files 145
Text files, buffered 451
Text files, end-of-file indicators for 141—143
Thompson, Ken 3
Tolower( ) function 460
Tone( ) function, creation of 537—541
Toupper( ) function 460
Translators, C++ 502
True value, and relational expressions 113 175—178
Truncation, and integer division 101
Two's complement notation 82
typedef 435—438
Types see "Data types"
Unary operations 98—99 103
Unbuffered input 136—137
Underflow, floating-point 55
Underscore symbol, and library routines 23
Ðåêëàìà