Just Enough C/C ++ Programming / Edition 1by Guy W. Lecky-Thompson
Pub. Date: 11/12/2007
Publisher: Cengage Learning
C programming is often thought of as inaccessible, but the language forms the basis for many other programming languages and paradigms, and as such is a vital, necessary skill for any IT professional to learn. Just Enough C/C++ Programming provides and intelligent layperson's guide to programming. The book does not assume you are a dummy, like so many other
C programming is often thought of as inaccessible, but the language forms the basis for many other programming languages and paradigms, and as such is a vital, necessary skill for any IT professional to learn. Just Enough C/C++ Programming provides and intelligent layperson's guide to programming. The book does not assume you are a dummy, like so many other beginning programming texts do, but it doesn't assume you are an engineer either. It simply gives you enough C language knowledge to be able to complete practical, in-industry, programming projects without becoming sidetracked by the peculiarities and complexities of this often complex language. Algorithm design for common programming problems, use of compilers and pre-processors, and the standard ASNI C libraries are all covered in enough detail so that you can pick up and apply the knowledge immediately. The companion web site includes usable sample code for download and key pointers on how the code can be adapted for real world use. Perfect for any aspiring software developer, Just Enough C/C++ Programming offers both a comfortable read, and practical, applicable, knowledge. Benefits:
• Takes an intelligent layperson's approach to C/C++ programming.
• Provides an introduction to the mechanics of programming, algorithm, and program design.
• Offers information about programming in general, and C/C++ programming and application design in particular.
• Gives the reader enough C language knowledge to be able to complete practical programming projects without becoming sidetracked by the peculiarities and complexities of the language.
• Includes summaries and how-to information for the main ANSI C libraries and a pull-out section for quick reference.
• Companion web site includes usable sample code for download and key pointers on how the code can be adapted for real world use.
- Cengage Learning
- Publication date:
- Edition description:
- New Edition
- Sales rank:
- Product dimensions:
- 7.30(w) x 9.10(h) x 1.20(d)
Table of Contents
1 Introduction Conventions Before You Begin : Getting the Right Tools Editor Compiler & Linker 2 Programming Recap What is Programming? Procedural Programming Program Flow Data Storage Compiling & Linking Executable File Format External Files (Header Files) 3 C Program Structure The Entry Point Declaring Variables Containing Code Blocks Variable Scoping Comments Defining Functions Simple Skeleton Application Building the Application If the Application Fails to Build Recap 4 Data Types & Variables Basic Types Sizes & Ranges Complex Data Types Casting Arrays Enumerated Types Data Types & Variables Recap 5 Decision Making The C if Statement The else Keyword Using else if Nesting The switch Statement Recap 6 Console I/O Formatted Output Using printf Using sprintf Formatted Input Using scanf Using sscanf Non-formatted I/O Recap 7 Standard Libraries Standard I/O : stdio.h String Handling : string.h Math Functions : math.h Memory Handling : malloc.h The Standard Library : stdlib.h The Time Library : time.h 8 Loops The for Loop The while Loop More do and while Using break and continue Nesting Loops Scoping revisited Recap 9 Command Line Processing The argv and argc Variables Processing the Command Line Conditional Execution Recap 10 User Defined Functions Declaring Functions Prototyping Function Parameter Lists Pass by Value Pass by Reference Recursion Recap 11 File I/O Formatted I/O Revisited Using fprintf Using fscanf Using fprintf & fscanf together Binary Input and Output Using fread and fwrite Recap 12 Complex Data Types The struct Keyword Accessing Data File Processing with Complex Data Types Recap 13 Pointers Strings Revisited Pointers and References Dereferencing Pointers and Memory Example : A Linked List of Command Line Arguments Recap 14 Pre-Processor Directives The Pre-Processor Concept The #include Directive The #define Directive Avoiding Multiple Includes C Style Macros Recap *[ 15 From C to C++ Object Oriented Design Object Oriented Programming Prototyping Revisited Classes Inheritance Polymorphism Example : A Linked List of Command Line Arguments (revisited) Recap 16 C++ in Practice Defining Classes Constructors Destructors Operators Example : Linked List Self-Management Overloading Recap ] 17 Where Next? 18 Web References
and post it to your social network
Most Helpful Customer Reviews
See all customer reviews >
Are you a beginner or intermediate C and C++ programmer? If you are, this book is for you! Author Guy W. Lecky-Thompson, has done an outstanding job of writing a great book that provides you with just enough information on the subject of C/C++ in hand to be useful in the real world. Lecky-Thompson, begins by showing you what the tools of the trade really are, some of the basic concepts related to the programming process. Next, the author focuses on the programming primer. Then, he covers some of the various concepts that make up the typical C program. The author continues by showing you how information is stored in a program. In addition, the author introduces you to Console I/O--showing you ways to get information from the user and display it on the screen. He also shows you how to selectively perform tasks based on the outcome of preceding tasks, which is vital in programming. Next, the author covers mechanisms that are available for task repetition. Then, he covers standard libraries. The author continues by providing you with a detailed explanation of how programs process incoming arguments and, how you can create functions within your programs. In addition, he deals with file I/O--which deals with ways to process files and perform external data storage. The author also shows you how you can create your own templates for storing information. Next, he looks at pointers--which is an advanced programming topic, but necessary for understanding the bridge into C++. Then, the author looks at pre-processor directives--which detail how you communicate with the program charged with taking your code and turning it into an application. He continues by discussing the extensions to C that make C++ a useful language. In addition, the author gives you some direction as to how you can go about using all of this information. Finally, he provides a list of all the various useful Web references. This most excellent book provides vast amounts of reference material. What¿s most important though, is to use the source code from the companion Web site, and click on the Downsload button.