The Rook's Guide to C++

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

This Creative Commons-licensed textbook written by Norwich University students and faculty aims to provide an introduction to the C++ programming language. The PDF and original typesetting materials are available if you are interested in having a free digital copy of your own or if you wish to contribute to improving the book. Please visit rooksguide.org for more details.

Author(s): Jeremy A Hansen
Publisher: Lulu.com
Year: 2013

Language: English
Pages: 160

History
Variables
How do I decide which data type I need?
Identifiers
Declaring a Variable
Initializing Variables
Assignment Statements
Review Questions
Review Answers
Further Reading
Literals and Constants
Literals
Declared Constants
Review Questions
Review Answers
Assignments
Review Questions
Review Answers
Output
Review Questions
Review Answers
Further Reading
Input
Review Questions
Review Answers
Further Reading
Arithmetic
Review Questions
Review Answers
Further Reading
Comments
Review Questions
Review Questions
Data Types and Conversion
Floating-point types
Other types introduced by C++11
Conversion Between Types
Coercion & Casting
Automatic Types in C++11
Review Questions
Review Answers
Further Reading
Conditionals
if, else, and else if
A small digression on expressions
Using else
switch statements
Review Questions
Review Answers
Strings
Review Questions
Review Answers
Further Reading
Loops
Introduction
Having Fun while Programming
do-while Loops
Event-Based Loops vs Count-Based Loops
for work or for play
Picking a Loop
Nested Loops
Infinite Loops
Review Questions
Review Answers
Further Reading
Arrays
Multi-dimensional Arrays
Review Questions
Review Answers
Further Reading
Blocks, Functions, and Scope
Blocks
Basic Functions in C++
What are functions and why do we use them?
The parts of a basic function
void Functions
Overloading Function Names
Scope
Review Questions
Review Answers
Further Reading
Problem Solving & Troubleshooting
The Compilation Error
The Logic Error
The Infinite Loop
Review Questions
Review Answers
The Preprocessor
Review Questions
Review Answers
Advanced Arithmetic
Examples
pow()
sqrt()
Modulo
Review Questions
Review Answers
Further Reading
File I/O
I/O Streams
File I/O
Opening and closing a File
Reading from a File
Writing data to a File
Introduction to Classes and Objects
Other functions
Review Questions
Review Answers
Further Reading
Pointers
Review Questions
Review Answers
Dynamic Data
Review Questions
Review Answers
Further Reading
Classes and Abstraction
structs
Assigning values to member variables
Classes
public and private variables and functions
Defining member functions
Using member functions
classes and structs together
Constructors
Overloading Member Functions
Review Questions
Review Answers
Further Reading
Separate Compilation
Review Questions
Review Answers
Further Reading
STL
#include #include (C++11)
#include
Forward iterators
Bidirectional iterators
Random access iterators
#include
#include
Further Reading
Пустая страница