Sams Teach Yourself C++ for Linux in 21 Days


Sams Teach Yourself C++ Programming for Linux in 21 Days teaches you the C++ programming language using the Linux operating system. You will gain a thorough understanding of the basics of C++ programming from a Linux perspective. The Bonus Week includes topics such as XWindows, KDE with QT toolkit, APE Class Library, and Real -time Middleware.

Read More Show Less
... See more details below
Available through our Marketplace sellers.
Other sellers (Other Format)
  • All (18) from $1.99   
  • New (2) from $195.00   
  • Used (16) from $0.00   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any coupons and promotions
Seller since 2015

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by
Sending request ...


Sams Teach Yourself C++ Programming for Linux in 21 Days teaches you the C++ programming language using the Linux operating system. You will gain a thorough understanding of the basics of C++ programming from a Linux perspective. The Bonus Week includes topics such as XWindows, KDE with QT toolkit, APE Class Library, and Real -time Middleware.

Read More Show Less

Editorial Reviews

Twenty-six tutorials introduce programming with C++ under the Linux operating system, covering such fundamentals as managing input/output, loops and arrays, object-oriented programming, templates, and creating applications. The CD-ROM contains source code, third party utilities, and Mandrake Linux 6.1. Annotation c. Book News, Inc., Portland, OR (
Read More Show Less

Product Details

  • ISBN-13: 9780672318955
  • Publisher: Sams
  • Publication date: 4/21/2000
  • Series: Sams Teach Yourself Series
  • Edition description: BK&CD-ROM
  • Edition number: 1
  • Pages: 1152
  • Product dimensions: 7.42 (w) x 9.08 (h) x 2.36 (d)

Meet the Author

Jesse Liberty is the author of WebClasses from Scratch, as well as a dozen other books on Web applications development, C++, and object-oriented programming. Jesse is the president of Liberty Associates, Inc., where he provides custom Web applications development, training, mentoring, and consulting. He is a former vice president of electronic delivery for Citibank and a distinguished software engineer at AT&T. Jesse also serves as the series editor of Que's Programming from Scratch books.

Read More Show Less

Table of Contents



Day 1. Getting Started.

What Is GNU? Getting GNU Tools. A Brief History of C++. Programs. Solving Problems. How C++ Evolved. Should I Learn C First? C++ and Java. The ANSI Standard. Preparing to Program. The GNU/Linux Development Environment. Compiling the Source Code. Creating an Executable File with the Linker. The Development Cycle. hello.cxx-Your First C++ Program. Using the g++ Compiler. Compile Errors. Summary. Q&A. Workshop.

Day 2. The Parts of a C++ Program.

A Simple Program. A Brief Look at cout. Comments. Functions. More About the GNU Compiler. Summary. Q&A. Workshop.

Day 3. Variables and Constants.

What Is a Variable? Defining a Variable. Creating More Than One Variable at a Time. Assigning Values to Your Variables. Using typedef. When to Use short and When to Use long. Using Character Variables. Using Constants. Using Enumerated Constants. Summary. Q&A.

Day 4. Expressions and Statements.

Statements. Expressions. Operators. Combining the Assignment and Mathematical Operators. Increment and Decrement. Operator Precedence. Nesting Parentheses. The Nature of Truth. The if Statement. Logical Operators. Short Circuit Evaluation. Relational Precedence. More About Truth and Falsehood. Conditional (Ternary) Operator. Summary. Q&A. Workshop.

Day 5. Functions.

What Is a Function? Return Values, Parameters, and Arguments. Declaring and Defining Functions. Execution of Functions. Local Variables. Global Variables. Global Variables: A Word of Caution. More on Local Variables. Function Statements. More About Function Arguments. Parameters Are Local Variables. More About Return Values. Default Parameters. Overloading Functions. Special Topics About Functions. How Functions Work—A Look Under the Hood. Multiple Source File Programs (Programmer-Created Function Libraries). Standard C++ Library Functions (libg++). Summary. Q&A. Workshop.

Day 6. Basic Classes.

Creating New Types. Introducing Classes and Members. Accessing Class Members. Defining Scope as Private Versus Public. Implementing Class Methods. Understanding Constructors and Destructors. Using const Member Functions. Distinguishing Interface from Implementation. Where to Put Class Declarations and Method Definitions. Applying Inline Implementation. Using Classes with Other Classes as Member Data. Using Structures. Summary. Q&A. Workshop

Day 7. More Program Flow.

Looping. while Loops. do while Loops. for Loops. Summary of Loops. switch Statements. Summary. Q&A. Workshop.



Day 8. Pointers.

What Is a Pointer? Why Would You Use Pointers? The Stack and the Free Store. Memory Leaks. Objects on the Free Store. Special Pointers and More issues. Pointer Arithmetic. Summary. Q&A. Workshop.

Day 9. References.

What Is a Reference? Using the Address of Operator & on References. What Can Be Referenced? Using Null Pointers and Null References. Passing Function Arguments by Reference. Understanding Function Headers and Prototypes. Returning Multiple Values Using Pointers. Passing by Reference for Efficiency. Understanding When to Use References and When to Use Pointers. Mixing References and Pointers. Do Not Return a Reference to an Object That Is Not in Scope! Returning a Reference to an Object on the Heap. Pointer, Pointer, Who Has the Pointer? Summary. Q&A. Workshop.

Day 10. Advanced Functions.

Overloading Member Functions. Using Default Values. Choosing Between Default Values and Overloaded Functions. Understanding Default Constructors. Overloading Constructors. Initializing Objects. Using the Copy Constructor. Overloading Operators. Understanding Conversion Operators. Summary. Q&A. Workshop.

Day 11. Inheritance.

What Is Inheritance? Private Versus Protected. Constructors and Destructors. Overriding Functions. Virtual Methods. Summary. Q&A. Workshop.

Day 12. Arrays, C Strings, and Linked Lists.

What Is an Array? Using the Free Store to Solve Memory Issues. What are char Arrays? String Classes. Linked Lists and Other Structures. Examining A Linked List Case Study. What Have You Learned? Using Array Classes Instead of Built-in Arrays. Summary. Q&A. Workshop.

Day 13. Polymorphism.

Problems with Single Inheritance. Multiple Inheritance. Mixins and Capabilities Classes. Abstract Data Types. The Observer Pattern. Summary. Q&A. Workshop.

Day 14. Special Classes and Functions.

Static Member Data. Static Member Functions. Pointers to Functions. Pointers to Member Functions. Summary. Q&A. Workshop.



Day 15. Advanced Inheritance.

Containment. Implementation in Terms of Inheritance/Containment Versus Delegation. Private Inheritance. Friend Classes. Friend Functions. Friend Functions and Operator Overloading. Overloading the Insertion Operator. Summary. Q&A. Workshop.

Day 16. Streams.

Overview of Streams. Streams and Buffers. Standard I/O Objects. Redirection. Input Using cin. Other Member Functions of cin. Output with cout. Related Functions. Manipulators, Flags, and Formatting Instructions. Streams Versus the printf() Function. File Input and Output. Binary Versus Text Files. Command-Line Processing. Summary. Q&A. Workshop.

Day 17. Namespaces.

Getting Started with Namespaces. Resolving Functions and Classes by Name. Creating a Namespace. Using a Namespace. Introducing the using Keyword. Using Namespace Alias. Using the Unnamed Namespace. Using the Standard Namespace std. Summary. Q&A. Workshop.

Day 18. Object-Oriented Analysis and Design.

Is C++ Object-Oriented? What Models Are. Software Design: The Modeling Language. Software Design: The Process. Conceptualization: The Vision. Requirements Analysis. Design. Do Not Rush to Code. Summary. Q&A. Workshop.

Day 19. Templates.

What Are Templates? Parameterized Types. Template Definition. Template Functions. Templates and Friends. Using Template Items. The Standard Template Library. Stacks. Understanding Queues. Algorithm Classes. Summary. Q&A. Workshop.

Day 20. Exceptions and Error Handling.

Bugs, Errors, Mistakes, and Code Rot. Exceptions. Using try and catch Blocks. Accessing Data in Exceptions by Naming Exception Objects. Using Exceptions and Templates. Triggering Exceptions Without Errors. Dealing with Bugs and Debugging. Summary. Q&A. Workshop.

Day 21. What's Next.

The Preprocessor and the Compiler. The #define Preprocessor Directive. Inclusion and Inclusion Guards. Macro Functions. Inline Functions. String Manipulation. Predefined Macros. assert(). Bit Twiddling. Coding Style. Next Steps. Summary. Q&A. Workshop.



Day 22. The Linux Programming Environment.

Philosophy and History. POSIX. The X Window System. Using the Linux Editors. Languages. Building. Debugging. Version Control. Documentation. Summary. Q&A. Workshop.

Day 23. Shell Programming.

What Is a Shell? Shells Available with Linux. Shell Operation and Syntax Basics. Shell Features. I/O Redirection. Variables. Backgrounding, Suspension, and Job Control. Command Completion. Command Substitution. Command History and Editing. Aliases. Shell Startup File(s). Summary. Q&A. Workshop.

Day 24. System Programming.

Processes. Threads. Summary. Q&A. Workshop.

Day 25. Interprocess Communication.

Background. Pipes. Named Pipes (FIFOs). System V IPC. Summary. Q&A. Workshop.

Day 26. GUI Programming.

The Linux Desktop. What Is the GNOME? 9. What Is the KDE? 9. Programming in C++ on the Linux Desktop. Fundamentals of GNOME Programming. Fundamentals of KDE Programming. Summary. Q&A. Workshop.


Appendix A: Operator Precedence.

Appendix B: C++ Keywords.

Appendix C: Binary, Octal, and Hexadecimal Numbers and an ASCII Chart.

Beyond Base 10. Around the Bases. Binary. Octal. Hexadecimal. ASCII.

Appendix D: Answers to Exercises and Quizzes.

Day 1. Day 2. Day 3. Day 4. Day 5. Day 6. Day 7. Day 8. Day 9. Day 10. Day 11. Day 12. Day 13. Day 14. Day 15. Day 16. Day 17. Day 18. Day 19. Day 20. Day 21. Day 22. Day 23. Day 24. Day 25. Day 26.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted September 9, 2000

    A Computer 'Teach Yourself Book' for Normal People

    If you need a book that will teach you about C++ without first requiring you to be a graduate computer nerd, this is it. Obviously written by someone who knows a bit about teaching psychology, examples are concrete, instruction is systematic and knowledge is built up logically. But this topic is no doddle: if you want to learn C++ you have to be prepared to put in the effort. And if you have to learn C++ in isolation, away from any supportive study group, you can do it with this book, and a lot of personal effort.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 9, 2000

    Good intro to C++ with a touch of GNU

    This is the same as the Sams Teach YourselfC++, with a little of the Linux toolsexplained. The intro to C++ is good and gotme on my feet with the subject. Days 22-26(extra) go into the Linux tools, but reallyjust shows that you need to get another bookto learn the subject. I did learn C++ fromthis book. If you got another Sams C++ in 21days book. don't bother with this one, it'sthe same stuff. I do recommend this book forlearning C++. Don't skim this book, you willbe in over your head before you know it!

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)