Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (2 votes)
1K views

C++ Programming With 558 Solved Problems

This document summarizes a book on C++ programming with over 558 solved problems. The book has 9 chapters that cover topics in C++ like variables, data types, operators, decision statements, loops, functions, arrays, pointers, structures, classes, and file processing. It includes code examples and outputs for the problems solved in each chapter. The goal is to help readers understand the C++ language and be able to write C++ programs.

Uploaded by

Haikal Fikri
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
1K views

C++ Programming With 558 Solved Problems

This document summarizes a book on C++ programming with over 558 solved problems. The book has 9 chapters that cover topics in C++ like variables, data types, operators, decision statements, loops, functions, arrays, pointers, structures, classes, and file processing. It includes code examples and outputs for the problems solved in each chapter. The goal is to help readers understand the C++ language and be able to write C++ programs.

Uploaded by

Haikal Fikri
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

C++ Programming

with
558 Solved Problems
Our first book titled C++ programming with 469 solved problems (2009, 7 Chapters)
was updated to this new book. This book covers the C++ programming language in 9
chapters with more than 558 solved examples using Microsoft Visual Studio 2010
up Integrated Development Environment. There are two chapters were added:
Ch8:Numerical Analysis and numerical Methods in C++, and Ch9:Introduction to
Algorithm with C++ programming. In addition to that: introduction to string
and string representation and programming was added. It is presented as an
introductory to advance course but can be used as reference book

I have taught C++ programming a lot during six years ago in computer science
departments. I have an experience how to present this language in this book. C++
language is still an important topic in all universities and it is a computer science
course requirement in any science collage and information technology.

The C++ programming language is called a compiled language. You cannot


write a C++ program and run it on your computer unless you have a C++ compiler.
This compiler takes your C++ language instructions and translates them into a form
that your computer can read. A C++ compiler is the tool your computer uses to
understand the C++ language instructions in your programs.

This book has 9 chapters in order to achieve the following objectives:

In chapter one, the objective is to understand a typical C++ program


development environment using an editor and Microsoft Visual Studio 2010 up C++
environment, the concept of programming , variables and constants to become
familiar with fundamental data types, and to be able to write computer programs in
C++ and using a compiler or debugging the program(i.e., Typing and running a C++
program with handling errors through a lot of solved examples), the program’s output
and program comments, to use simple input and output statements also to use
arithmetic operators, to understand the precedence of arithmetic operators, and to be
able to use the increment, decrement, assignment and logical operators. Finally to be
able to write simple decision – making statements using the if, if/else.

In chapter 2 , structured programming was presented where this chapter


introduces you to understand counter-controlled repetition to be able to use the while,
do/while and for repetition structures to execute statements in a program repeatedly.
Also to be used switch selection structures. Finally to be able to use the break and
continue program control statements and to use logical operators.

Chapter 3 introduces you to be able to create new functions, to pass information to


functions, then processing and return it to call. Also to understand how to write and
use functions that calls themselves (recursion functions).
Chapter 4 introduces you the array data structure (i.e., how to declare an array,
initialize an array and refer to individual elements of an array, the use of arrays to
store, sort and search lists and tables of values). Finally I explained and gave
examples how to pass arrays to functions.

Chapter 5 introduces you to be able to use pointers and to be able to use pointers to
pass arguments to functions by call-by-reference. I explained relationships among
pointers, arrays and strings.

Chapter 6 introduces you to understand how to create structures, to create, use, and
destroy class objects. And how to access to object data members and member
functions to be able to specify constant members of class. Also to understand the use
of this pointer. Finally I presented a lot of solved examples.

Chapter 7 introduces you file processing to be able to create, read, write and update
files to become familiar with sequential and random-access access files processing.

Chapter 8: This chapter offers students both an introduction to input/output files using
programming in C++ and clear explanations of the basics of numerical methods,
including numerical integration and the solution of ordinary differential equations,
nonlinear equations.

Chapter 9: This chapter includes introduction to Algorithm, Algorithm definition and


its characteristics, Algorithm in programming, C++ example to convert algorithm
steps into C++ code, and run these codes.

In this book, I have presented 558 solved examples in C++ language copied into CD-
ROM which included all examples code and their running outputs. It was distributed
on all chapters as follows:

The solved examples (whole code , and run the program results) in Ch1, Ch2,
Ch3, Ch4, Ch5, Ch6, Ch7,Ch8, and Ch9 are 45, 120, 64, 83, 88, 64, 28 ,45, 21
respectively. In addition to the three samples of exam with their answer included
12 solved questions. And I want to say that: the all topics in this book, I have taught
them at computer science department through six years and I have collected, run, and
explained all these problems (i.e., code and results) in easy way depending on what
the students require for understanding C++ language and I have depended on recent
references, spatially the references 1 and 2. Finally This book included two
appendices as follows

Appendix A- Good project in C++ language-Bank system

Appendix B- ASCII Character Set.

Acknowledgements
The author gratefully acknowledges the assistance of Baghdad university for
publishing this book in the final phase of production.

I also give a very special thanks to my students for their questions, comments,
discussions, and suggestion which provided special inspiration for this book.

You might also like