John paul mueller, jeff cogswell c++ all in one for dummies

867 905 1
John paul mueller, jeff cogswell   c++ all in one for dummies

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

[...]... 123 Heaping and Stacking the Variables 124 Getting a variable’s address 127 Changing a variable by using a pointer 129 Pointing at a string 131 Pointing to something else 133 Tips on pointer variables 134 Dynamically Allocating with new 135 Using new 135 Using an initializer 137 Making new strings 138 Freeing Pointers... Viewing your breakpoints 774 Starting the debugger 775 Working with the Debugging Windows 775 Viewing the focus variables using the Autos window 775 Viewing all of the variables in a method using the Locals window 777 Screening specific variables using the Watch 1 window 777 Working with the Call Stack window 778 Chapter 5: Analyzing Your Visual C++ 2008 Code ... the language! 6 C++ All- in- One For Dummies, 2nd Edition Book I Introducing C++ Contents at a Glance Chapter 1: Creating a First C++ Program 9 Creating a Project 9 Typing the Code 16 Starting with Main 17 Showing Information 18 Let Your Program Run Away 27 Chapter 2: Storing Data in C++ ... 3: Stopping and Inspecting Your Code 373 Setting and Disabling Breakpoints 374 Setting a breakpoint in CodeBlocks 375 Enabling and disabling breakpoints 376 Watching, Inspecting, and Changing Variables 378 Watching the local variables 380 Watching other variables 382 Chapter 4: Traveling About the Stack .385 Stacking Your... the book is for C++ in general C++ is now standardized, and you can use the information in this book for many different platforms We wrote the samples on Microsoft Windows But for most samples, we used a compiler called CodeBlocks that runs on almost every computer (Windows, Linux, and Macintosh) It doesn’t matter which computer you’re using! All the code in this book, except that in Minibook VII,... Associating and storing with a set 552 Unionizing and intersecting sets 554 Listing with list 557 Stacking the deque 561 Waiting in line with stacks and queues 562 Copying Containers 564 Book V: Reading and Writing Files 567 Chapter 1: Filing Information with the Streams Library 569 Seeing a Need for Streams 570 Programming with... Variables 55 Reading from the Console 56 Chapter 3: Directing Your C++ Program Flow 59 Doing This or Doing That 60 Evaluating Conditions in C++ 60 Finding the right C++ operators 61 Combining multiple evaluations 62 Including Evaluations in C++ Conditional Statements 63 Deciding what if and also what else 64 Going further with... xviii C++ All- in- One For Dummies, 2nd Edition Performing Comparisons Using min and max 648 Working with Temporary Buffers 649 Chapter 2: Building Original Templates .651 Deciding When to Create a Template 652 Defining the Elements of a Good Template 653 Creating a Basic Math Template 655 Building a Structure Template 656 Developing a... Registering and unregistering the application 765 Seeing the Text Editor Project in Action 766 xx C++ All- in- One For Dummies, 2nd Edition Chapter 4: Using the Visual C++ 2008 Debugger .769 A Quick Look at the Error Application 770 Starting Your Application in Debugging Mode 771 Creating the proper build 772 Setting breakpoints 772 Viewing your... Creating an integer variable 30 Declaring multiple variables 33 Changing values 33 Setting one variable equal to another 34 Initializing a variable 35 Creating a great name for yourself 36 Manipulating Integer Variables 37 Adding integer variables 38 Subtracting integer variables 41 Multiplying integer variables 43 Dividing . specifically for this book, go to www .dummies. com/cheatsheet/cplusplusaio est. spine=1.72” by John Paul Mueller and Jeff Cogswell C++ ALL-IN-ONE FOR DUMmIES ‰ 2ND. Cogswell C++ ALL-IN-ONE FOR DUMmIES ‰ 2ND EDITION 01_317358-ffirs.indd i01_317358-ffirs.indd i 7/22/09 11:14:29 PM7/22/09 11:14:29 PM C++ All-in-One For Dummies ® , 2nd Edition Published

Ngày đăng: 19/03/2014, 14:10

Từ khóa liên quan

Mục lục

  • C++ All-In-One for Dummies, 2nd Edition

    • About the Authors

    • Dedication

    • Authors’ Acknowledgments

    • Contents at a Glance

    • Table of Contents

    • Introduction

      • No Experience Necessary

      • Great for Advanced Folks, Too!

      • For All Computers

      • Conventions

      • Organization

      • Icons Galore

      • What’s Next?

    • Book I: Introducing C++

      • Contents at a Glance

      • Chapter 1: Creating a First C++ Program

        • Creating a Project

        • Typing the Code

        • Starting with Main

        • Showing Information

        • Let Your Program Run Away

      • Chapter 2: Storing Data in C++

        • Putting Your Data Places: Variables

        • Manipulating Integer Variables

        • Characters

        • Strings

        • Deciding between Conditional Operators

        • Telling the Truth with Boolean Variables

        • Reading from the Console

      • Chapter 3: Directing Your C++ Program Flow

        • Doing This or Doing That

        • Evaluating Conditions in C++

        • Including Evaluations in C++ Conditional Statements

        • Repeating Actions with Statements That Loop

      • Chapter 4: Dividing Your Work with Functions

        • Dividing Your Work

        • Calling a Function

        • Writing Your Own Functions

        • Calling All String Functions

        • Understanding main

      • Chapter 5: Dividing Between Source-Code Files

        • Creating Multiple Source Files

        • Sharing with Header Files

        • Sharing Variables Among Source Files

        • Using the Mysterious Header Wrappers

      • Chapter 6: Referring to Your Data through Pointers

        • Heaping and Stacking the Variables

        • Dynamically Allocating with new

        • Freeing Pointers

        • Passing Pointer Variables to Functions

        • Returning Pointer Variables from Functions

        • Returning a Pointer as a Nonpointer

        • Passing by Reference

        • Remembering the Rules

      • Chapter 7: Working with Classes

        • Understanding Objects and Classes

        • Working with a Class

        • Starting and Ending with Constructors and Destructors

        • Building Hierarchies of Classes

      • Chapter 8: Using Advanced C++ Features

        • Filling Your Code with Comments

        • Converting Types

        • Reading from the Console

        • Understanding Preprocessor Directives

        • Using Constants

        • Using Switch Statements

        • Supercharging enums with Classes

        • Working with Random Numbers

        • Storing Data in Arrays

    • Book II: Understanding Objects and Classes

      • Contents at a Glance

      • Chapter 1: Planning and Building Objects

        • Recognizing Objects

        • Encapsulating Objects

        • Building Hierarchies

        • Discovering Classes

      • Chapter 2: Describing Your Program with UML

        • Moving Up to UML

        • Building with UML and the Unified Process

        • Moving Forward with UML

      • Chapter 3: Structuring Your Classes with UML

        • Drawing Classes

        • Building Components

        • Deploying the Software

      • Chapter 4: Demonstrating Behavior with UML

        • Drawing Objects

        • Casing Out the Use Cases

        • Sequence Diagrams

        • Collaboration Diagrams

        • Activity Diagrams

        • State Diagrams

      • Chapter 5: Modeling Your Programs with UML

        • Using UML Goodies

        • Free to Be UML

        • C++ and UML

      • Chapter 6: Building with Design Patterns

        • Introducing a Simple Pattern: the Singleton

        • Watching an Instance with an Observer

        • Mediating with a Pattern

    • Book III: Fixing Problems

      • Contents at a Glance

      • Chapter 1: Dealing with Bugs

        • It’s Not a Bug. It’s a Feature!

        • Make Your Programming Features Look Like Features

        • Anticipating (Almost) Everything

        • Avoiding Mistakes, Plain and Simple

      • Chapter 2: Debugging a Program

        • Programming with Debuggers

        • Debugging with Different Tools

      • Chapter 3: Stopping and Inspecting Your Code

        • Setting and Disabling Breakpoints

        • Watching, Inspecting, and Changing Variables

      • Chapter 4: Traveling About the Stack

        • Stacking Your Data

        • Debugging with Advanced Features

    • Book IV: Advanced Programming

      • Contents at a Glance

      • Chapter 1: Working with Arrays, Pointers, and References

        • Building Up Arrays

        • Pointing with Pointers

        • Referring to References

      • Chapter 2: Creating Data Structures

        • Working with Data

        • Structuring Your Data

        • Naming Your Space

      • Chapter 3: Constructors, Destructors, and Exceptions

        • Constructing and Destructing Objects

        • Programming the Exceptions to the Rule

      • Chapter 4: Advanced Class Usage

        • Inherently Inheriting Correctly

        • Using Classes and Types within Classes

      • Chapter 5: Creating Classes with Templates

        • Templatizing a Class

        • Parameterizing a Template

        • Typedefing a Template

        • Deriving Templates

        • Templatizing a Function

      • Chapter 6: Programming with the Standard Library

        • Architecting the Standard Library

        • Containing Your Classes

        • The Great Container Showdown

        • Copying Containers

    • Book V: Reading and Writing Files

      • Contents at a Glance

      • Chapter 1: Filing Information with the Streams Library

        • Seeing a Need for Streams

        • Programming with the Streams Library

        • Handling Errors When Opening a File

        • Flagging the ios Flags

      • Chapter 2: Writing with Output Streams

        • Inserting with the << Operator

        • Formatting Your Output

      • Chapter 3: Reading with Input Streams

        • Extracting with Operators

        • Encountering the End of File

        • Reading Various Types

        • Reading Formatted Input

      • Chapter 4: Building Directories and Contents

        • Manipulating Directories

        • Getting the Contents of a Directory

        • Copying Files

        • Moving and Renaming Files and Directories

      • Chapter 5: Streaming Your Own Classes

        • Streaming a Class for Text Formatting

        • Manipulating a Stream

    • Book VI: Advanced C++

      • Contents at a Glance

      • Chapter 1: Exploring the Standard Library Further

        • Considering the Standard Library Categories

        • Parsing Strings Using a Hash

        • Obtaining Information Using a Random Access Iterator

        • Locating Values Using the Find Algorithm

        • Using the Random Number Generator

        • Performing Comparisons Using min and max

        • Working with Temporary Buffers

      • Chapter 2: Building Original Templates

        • Deciding When to Create a Template

        • Defining the Elements of a Good Template

        • Creating a Basic Math Template

        • Building a Structure Template

        • Developing a Class Template

        • Considering Template Specialization

        • Creating a Template Library

        • Using Your Template Library

      • Chapter 3: Investigating Boost

        • Understanding Boost

        • Obtaining and Installing Boost for CodeBlocks

        • Using Boost Jam

        • Using Boost Build

        • Using Regression

        • Using Inspect

        • Understanding BoostBook

        • Using QuickBook

        • Using bcp

        • Using Wave

        • Building Your First Boost Application Using Date Time

      • Chapter 4: Boosting up a Step

        • Parsing Strings Using RegEx

        • Breaking Strings into Tokens Using Tokenizer

        • Performing Numeric Conversion

        • Creating Improved Loops Using Foreach

        • Accessing the Operating System Using Filesystem

    • Book VII: Building Applications with Microsoft MFC

      • Contents at a Glance

      • Chapter 1: Working with the Visual C++ 2008 IDE and Projects

        • Understanding the Project Types

        • Creating a New Win32 Console Application

        • Writing Code Faster

        • Viewing Your Project in Solution Explorer

        • Using the Standard Toolbars

        • Changing Application Properties

        • Modifying the IDE Appearance

      • Chapter 2: Creating an MFC Dialog Box Project

        • Understanding the MFC Dialog Box Project

        • Creating the MFC Dialog Box Project

        • Adding Components and Controls

        • Defining the Dialog Box Code

        • Understanding the Essential Windows

      • Chapter 3: Creating an MFC SDI Project

        • Understanding the MFC SDI Project

        • Creating the MFC SDI Project

        • Understanding the Document/View Architecture

        • Adding Code to Your SDI Project

        • Seeing the Text Editor Project in Action

      • Chapter 4: Using the Visual C++ 2008 Debugger

        • A Quick Look at the Error Application

        • Starting Your Application in Debugging Mode

        • Working with the Debugging Windows

      • Chapter 5: Analyzing Your Visual C++ 2008 Code

        • Using Performance Wizard

        • Profiling the Code

      • Appendix A: Automating Your Programs with Makefiles

        • Compiling and Linking

        • Automating Your Work

        • Implying with Inference Rules

      • Appendix B: About the CD

        • System Requirements

        • Using the CD

        • What You’ll Find on the CD

        • Troubleshooting

        • Customer Care

    • Index

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan