Saturday, June 14, 2008

Accelerated C++ Chapter 0 - Getting Started

The Page starts the discussion of Accelerated C++: Practical Programming by Example (C++ In-Depth Series)

Accelerated C++ is a new approach to teaching C++. It teaches the reader the most useful aspects of C++ instead of starting with teaching C. The reader is introduced to high level data structures from the start. It also focuses on solvings problems through clear examples instead of just explaining the features and libraries as most textbooks tend to do.

The first chapter of this book is named Chapter 0 in reference to zero index arrays. As with all beginning programming books it begins with the Hello World program.

int main() {
std::cout << "Hello World" << std::endl;
return 0;

This simple examples teaches a lot. It teaches proper scoping, comments, functions, return values, white space rules, and include directive. The remaining couple pages of chapter 0 explain those issues. The chapter ends with the user having written and compiled their first program and ready to move on.

No comments: