Introduction to C++ Programming and Graphics / Edition 1

Hardcover (Print)
Buy New
Buy New from
Used and New from Other Sellers
Used and New from Other Sellers
from $44.51
Usually ships in 1-2 business days
(Save 47%)
Other sellers (Hardcover)
  • All (13) from $44.51   
  • New (10) from $44.51   
  • Used (3) from $77.99   


This book offers a venue for rapidly learning the language of C++ by concisely revealing its grammar, syntax and main features, and by explaining the key ideas behind object oriented programming (OOP) with emphasis on scientific computing. The book reviews elemental concepts of computers and computing, describes the primary features of C++, illustrates the use of pointers and user-defined functions, analyzes the construction of classes, and discusses graphics programming based on VOGLE and OpenGL. In short, the book is a basic, concise introduction to C++ programming for everyone from students to scientists and engineers seeking a quick grasp of key topics.

Read More Show Less

Editorial Reviews

From the Publisher
From the reviews:

"This book is a brief and basic introduction to C++ for everyone and especially for scientists and engineers. The text offers a venue for effectively teaching and rapidly learning the language at the level of an undergraduate course in any discipline of the physical sciences and computer science and engineering." (Stefan Meyer, Zentralblatt MATH, Vol. 1128 (6), 2008)

"This book, a relatively small volume of slightly more than 300 pages, covers practically all one needs to know about C++ to be proficient. The concepts and features are introduced with to-the-point illustrating examples. … the book provides an excellent entry point to C++, from which anyone with moderate programming experience will benefit." (Computing Reviews, April, 2008)

"Pozrikidis states that his book is ‘a brief and basic introduction to C++ for everyone and especially for scientists and engineers.’ He follows this with a claim that it ‘offers a venue for effectively teaching and rapidly learning the language at the level of an undergraduate course in any discipline of the physical sciences and computer science and engineering.’" (Thomas Sheehan, ACM Computing Reviews, November, 2008)

Read More Show Less

Product Details

  • ISBN-13: 9780387689920
  • Publisher: Springer US
  • Publication date: 6/28/2007
  • Edition description: 2007
  • Edition number: 1
  • Pages: 372
  • Product dimensions: 5.90 (w) x 9.30 (h) x 1.10 (d)

Table of Contents

Computers and Computing     1
Hardware and software     1
The binary system     3
Binary system arithmetic     10
Computer memory and addresses     13
Computer programming     15
Floating-point representation     19
The hexadecimal system     22
General Features of C++     24
The main function     24
Grammar and syntax     25
Data types     28
Vectors, arrays, and composite data types     34
System header files     38
Standard namespace     40
Compiling in Unix     41
Simple codes     44
Programming in C++     47
Operators     47
Vector and matrix initialization     51
Control structures     53
Receiving from the keyboard and displaying on the monitor     59
Mathematical library     68
Read from a file and write to a file     70
Formatted input and output     74
Sample algorithms     80
Bitwise operators     85
Preprocessor define and undefine     88
User-Defined Functions     91
Functionsin the main file     91
Static variables     93
Function return     95
Functions in individual files and header files     100
Functions with scalar arguments     102
Functions with array arguments     109
External variables     117
Function overloading     119
Recursive calling     120
Function templates     121
Pointers     127
Pointers to scalars and characters     127
Pointers to arrays and strings     134
Sorting with the STL     137
Command line arguments     140
Pointers to functions     142
Pointers to free memory     145
Classes and Objects     149
Class objects and functions     151
Class interfaces     152
Class definition     153
Private fields, public fields, and global variables     159
The fruit class     161
Friends     163
Circles and squares     164
Algebra on real numbers     167
Operator overloading     170
Pointers to class members     173
The class of points in a plane     175
The class of runners     178
Header files and projects     183
Inheritance     185
Pointers and virtual functions     189
Class templates     193
Graphics Programming with VOGLE     197
Compilation     198
Getting started with VOGLE     200
Animation     207
Plotting a line     215
A graph with axes     221
Graph animation     231
Three-dimensional interactive graph     236
Three-dimensional interactive object drawing     248
Graphics Programming with GLUT, GLUI, and GTK+     252
GLUT     252
Graphics events     268
Drop-down menus     279
GUI programming with GLUI     281
GUI programming with GTK+     283
Using Matlab     287
Invoking Matlab     288
The Matlab engine library     289
The Matlab engine functions     290
Transferring data to the Matlab domain     294
Transferring data from Matlab to the C++ domain     306
Unix Primer     314
Summary of VOGLE Functions     318
C++/Matlab/Fortran 77 Dictionary      325
ASCII Code     337
C++ Keywords     341
Matlab Primer     343
Grammar and syntax     343
Precision     346
Matlab commands     347
Elementary examples     348
Matlab functions     352
User-defined functions     352
Numerical methods     355
Matlab graphics     355
The Standard Template Library     364
Index     367
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

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