Àâòîðèçàöèÿ
Ïîèñê ïî óêàçàòåëÿì
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
Ïðåäìåòíûé óêàçàòåëü
#define directive, and C preprocessor 325—331
#define directive, and symbolic constants 71—74
#define directive, compared to typedef 435
#elif directive 337
#else directive 336—337
#endif directive 336—337
#if directive 336—337
#ifdef directive 336—337
#ifndef directive 336—337
#include directive 18
#include directive, and file input-output 333—335 447—448
#undef directive 335—336
A mode, with fopen( ) function 450
A+ mode, in ANSI C 486
Absolute value function 259—261
Actual arguments 257—258 277
Addition operation 97—98 102—104
Addition operation, array and pointer 348—349
Additive assignment operation 214 218 220
Addresses and address operation 262—263 513
Addresses and pointers 265—272 354
Addresses and scanf( ) function 37 66 84
Addresses of variables, and names 271—272
Addresses, structure, as arguments 430—431
Alarm, escape sequence for 490
Algorithms, and pseudocode 208
Alphabetic characters, testing for 459
Alphanumeric characters, testing for 460
American National Standards Institute, and C language standards 479—494
And operation, bitwise 528
And operation, logical 180—181 513
Angle brackets, and #include 333
Animal names program 192—197
ANSI C language standards 479—494
Argc, and main( ) function 402
Arguments and function overloading, in C++ 496—497
Arguments and functions 24—25 255—259 277
Arguments and increment operation 111—112
Arguments for fgets( ) function 455
Arguments for fopen( ) function 450
Arguments for fprintf( ) function 454—455
Arguments for fscanf( ) function 454—455
Arguments for fseek( ) function 457
Arguments for printf( ) function 75 77
Arguments for scanf( ) function 83—84
Arguments with macros 328—331
Arguments, arrays as 349—351
Arguments, arrays of structures as 431—433
arguments, command-line 400—403
Arguments, structure addresses as 430—431
Arguments, structure members as 428—430
Arguments, structure, and ANSI C 482—485
Arguments, type-checking of, in ANSI C 487—490
Arguments, with #define 328—331
Argv, and main( ) function 402
Arithmetic operations 95—112 121 512
Arithmetic operations in ANSI C 491
Arrays 233—241 343—347
Arrays and pointers 347—367
Arrays of character strings 66—67 381—382
Arrays of structures 419—424 431—433
Arrays, and functions, and pointers 349—367
Arrays, compared to pointers 379—380
Arrays, input for 311—314
arrays, multidimensional 356—367
Arrays, protection of, with const 492—493
ASCII codes and characters 49
ASCII codes and characters, and printf( ) function 82—83
ASCII codes and characters, conversion of, to integer 307
ASCII codes and characters, table of 543—546
ASCII codes and characters, testing for 460
Assembly code files 12
Assembly language, and ports 155
Assignment operations 96—97 121 214—215 218 220 512—513
Assignment operations in expressions 112—113
Assignment operations, compared to equality operators 173—174
Assignment operations, pointer 354
assignment statements 20 24—25 114
associativity, of operators 103—104 511—512
Asterisk modifier in printf( ) function 85
Asterisk modifier in scanf( ) function 85—86
Asterisk modifier in type declarations 437—438
Atof( ) function 462—464
Atoi( ) function 307 462—465
Auto and automatic variables 289 295 519
Automatic arrays, initialization of 344
Backslash character for double quotes 377
Backslash character for nonprinting characters 50—52
Backslash character with macro definitions 325—326
Backslash character, escape sequence for 26 51
BACKSPACE 26
Backspace, escape sequence for 51
Base 10 numbers 533
Base 16 numbers 535 see
Base 2 numbers 533—535
Base 8 numbers 535 see
Base conversions, and printf( ) function 45
BASIC language, assignment and equality operators in 173
BASIC language, compared to C 3 12
Bell Labs, and C 3
Binary files, and fopen( ) modes 487
Binary files, end of file in 141
Binary files, library functions for 469
Binary numbers 533—535
Binary operations 98—99
Binary tree structures 433—434
Bit operations 527—531
bits 40
Black box concept, of functions 252 258—259
Blank lines, for readability 27
Blanks, and scanf( ) function 68
Blanks, for output spacing 87
BLOCKS 115—118
Body, of functions 26—27
Braces and functions 21 26
Braces in while loops 95
Braces, for array initialization 344—345
Braces, for statements 19—20 115—116
Braces, for structure members 415
Brackets as array indicator 67
Brackets in type declarations 437—438
break statement 227—228 232 525
Break statement, avoiding goto statements with 231
Break statement, with switch 194—197
Buffers, for text files 451
Buffers, input 136—137
bytes 40
C language 3
C language and C++ 501—502
C language, sources of information for 507—508
C language, standards for 479—494
C language, virtues of 4—6
C Programming Language, The (Kernighan and Ritchie) 223 479
C suffix, for program files 21
C++ 494—502
C++ Programming Language, The (Stroustrup) 494
Calloc( ) function 468—469
Calls, function 25 253
Calls, macro 330—331
Carriage return, escape sequence for 51
Case conversion program 460—462
Cast operations 120—121 515
Cat, UNIX command 146
Cc compile command 9
char see "Characters and char data type"
character strings 65—70 375—376
Character strings and arrays 234—235 378—379 381—382
Character strings and command-line arguments 401—404
Character strings and pointers 382—384
Character strings, compared to characters 68—69
Character strings, control see "Control strings"
Character strings, conversions involving 304—307 462—465
Character strings, defining 377—384
Character strings, input of 84 384—388
Character strings, library functions for 391—397
Character strings, output of 81 388—391
Character strings, replacement, and macros 326
Character strings, sorting, program for 398—400
Characters and char data type 36 39 49—52 56 66—67 518
Characters and char data type in for statements 214
Characters and char data type, compared to character strings 68—69
Characters and char data type, conversion of 459—462
Characters and char data type, pointers to 386
Characters and char data type, ranking of 117
Characters and char data type, sketch program using 184—191
Characters and char data type, testing of 459—462
Characters and char data type, variables 36
Closing, file 451
Colons in bit structures 530
Colons with labels 193—195 229—230 524—525
Colons, :: notation, in C++ classes 499
Combined redirection 146—147
Comma operation 217—220 515
command-line arguments 400—403
Commas as operator 217—220 515
Commas as variable separator 28 43 219 518
Commas in array initialization 344—345
Commas, for multiple arguments 259
Comments 18—19 21 335
Compare function, string 393—396
Compile time substitution 71
Compiled languages 5 8
Compiling C and speed 12
Compiling C on IBM PC 10—12 279
Compiling C on UNIX systems 9—10 279
compound statements 115—118
Concatenation function 392—393
Conditional compilation, and portability 337
conditional loops 207
Conditional operation 191—192 515
Const modifiers 492—493
Constants, capitalization of 72
Constants, character 49—50
Constants, character string 68 377—378
Constants, compared to variables 37
Constants, enumerated 491—492
Constants, floating point 54
Constants, integer 44 48
Constants, named 492
Constants, pointer 266 348
Constants, symbolic, and preprocessor 66 70—75 325—328
Constructors, in C++ 498—499
continue statement 229 231—232 525
Control characters, testing for 460
Control strings, for printf( ) function 75—77
Control strings, for scanf( ) function 83
Control structures, break statement 227—228
Control structures, continue statement 229 231—232 525
Control structures, do while loops 222—225 523
Control structures, for loops 212—220 522
Control structures, goto statement 229—233
Control structures, if statements see "If statements"
Control structures, jumps 227—233 525—526
Control structures, switch and break 192—197 524—525
Control structures, while loops see "While statements"
Control-d, as end-of-file indicator 143
Control-z, as end-of-file indicator 141 143
Conversion specifications, and printf( ) function 77 83
Conversion specifications, and printf( ) function, %c 36 52 75 84
Conversion specifications, and printf( ) function, %d 20 26 45 75 82
Conversion specifications, and printf( ) function, %e 55 75
Conversion specifications, and printf( ) function, %f 36 55 72 75
Conversion specifications, and printf( ) function, %g 75
Conversion specifications, and printf( ) function, %ld 48
Conversion specifications, and printf( ) function, %lu 48
Conversion specifications, and printf( ) function, %o 45 75 82
Conversion specifications, and printf( ) function, %s 66 68 75
Conversion specifications, and printf( ) function, %u 48 75 82
Conversion specifications, and printf( ) function, %x 45 75 82
Conversions, base 45
Conversions, of character strings 304—307 462—465
Conversions, of characters 459—462
Conversions, type 82—83 117—121
Copy function, string 396—397
Copying, of files, using redirection 146—147
Cypher program 148—149 165—166
Data identifiers 45 66 77 82—83
Data integrity, and C++ 501
Data types 37—42 56—59
data types, CHAR see "Characters and char data type"
Data types, checking of 480 487—489
Data types, choosing 310
Data types, conversions 82—83 117—121
data types, Double 53—54 117 491 518
Data types, enumerated 491—492
data types, float see "Floating-point numbers and float data type"
Data types, in ANSI C 490—494
data types, INT see "Integers and int data type"
Data types, keywords for 517
Data types, specifiers 518
Data types, unsigned see "Unsigned types"
data types, user-defined 435—438 494—501
DEC systems, data type sizes in 57
Declarations 22—23 114
Declarations, compared to definitions 290
Declarations, forward 275 489
Declarations, of array of type char 67
Declarations, of arrays of structures 420—424
Declarations, of character variables 49
Declarations, of class functions, in C++ 498
Declarations, of enumerated types 492
Declarations, of external variables 289—290 295
Declarations, of floating-point constants 54
Declarations, of floating-point variables 53—54
Declarations, of function types 274—277
Declarations, of integer variables 43 47
Declarations, of pointers 267—268
Declarations, of simple variables 57 518
Declarations, of structure pointer 426
Declarations, of types 437—438
Decrement operation 109—112
Decrement operation, and pointers 355
Decrement operation, in for statements 214
Default options, and printf( ) function 80—81
Default values, in enumerated data type 492
Default, in switch statements 194 524—525
defensive programming 313
Definitions, character string 377—384
Definitions, compared to declarations 290
Definitions, function 254
Definitions, macro 326
Definitions, of class functions, in C++ 498—500
Definitions, simple variable 43—44
Definitions, structure variable 417—418
Demotion, and type conversions 117—119
Dice-rolling simulation 298—301
Differencing operation, for pointers 355
Digits, testing for 459
Direct input 136—137
Directives, preprocessor, #define 71—74 325—331
Directives, preprocessor, #elif 337
Directives, preprocessor, #else 336—337
Directives, preprocessor, #endif 336—337
Directives, preprocessor, #if 336—337
Directives, preprocessor, #ifdef 336—337
Directives, preprocessor, #ifndef 336—337
Directives, preprocessor, #undef 335—336
Directives, preprocessor, include 333—335
Division operations 101—104
Division operations, by powers of two 529
Ðåêëàìà