Читаем C++ Primer Plus полностью

iostream, 33–34, 289, 1064, 1067

text files, 287–288

reading, 292–298

writing to, 288–292

file_it() function, 408

fill characters, 1081–1082

fill() function, 1081, 1294, 1299

array objects, 357

fill.cpp, 1082

filling arrays, 326–327

fill_array() function, 325–327, 331

fill_n() function, 1294, 1299

fin.clear() function, 1121

final, 1183–1184

find() function, 1287–1289

find() method, 960–961, 965, 1260–1261, 1283

finding, 1260

find_arr() function, 994

find_end() function, 1287–1290

find_first_not_of() method, 961, 1262–1263

find_first_of() function, 1287, 1290

find_first_of() method, 961, 1262

find_if() function, 1287–1289

find_last_not_of() method, 1263

find_last_of() method, 961, 1262

firstref.cpp, 383

fixed manipulator, 1091

flags, 1084

flags, setting, 1083

float data type, 94–96

floating points, display precision, 1082–1087, 1090

floating-point data types, default behavior, 1076

floating-point numbers, 92

advantages/disadvantages, 96–97

constants, 96

decimal-point notation, 92

double data type, 94–96

E notation, 92–93

float data type, 94–96

long double data type, 94–96

floatnum.cpp, 95

fltadd.cpp, 96

flush() function, 1076

flushing buffers, 1063

for loops

blocks, 212–214

body, 196–197

combination assignment operators, 211–212

comma operator, 214–217

example, 214–216

precedence, 217

compared to while loops, 227–228

decrement operator (--), 207–208

pointers, 210–211

postfixing, 209–210

prefixing, 209–210

example, 196–197

expressions, 200–202

compared to statements, 201

declaration-statement expressions, 202

factorials, calculating, 203–205

increment operator (++), 207–208

pointers, 210–211

postfixing, 209–210

prefixing, 209–210

initialization, 196–197

loop test, 196–197

loop updates, 196–198, 205–206

nested loops, 244–249

nonexpressions, 202

range-based, 1161

sequence points, 208–209

side effects, 201, 208–209

step size, 205–206

strings, 206–207

syntax, 197–199

for statements, declaration-statement expressions, 203

for-init-statement, 203

forcing moves, 1173–1174, 1177–1178

forever loops, 232

forloop.cpp, 196

formal arguments, 314

formatted input functions, 1094

formatting

if else statement, 257–258

incore, 1142–1145

source code, 39

source code style, 40

tokens, 39

white space, 39

with cout, 1076–1077

field width display, 1080–1081

fill characters, 1081–1082

floating-point display precision, 1082–1083

manipulators, 1090–1091

number base display, 1078–1079

trailing zeros/decimal points, 1083–1090

with iomanip header file manipulators, 1091

formore.cpp, 203–204

forstr1.cpp, 206

forstr2.cpp, 215

forward declaration, 884

forward iterators, 998

for_each() function, 987–988, 1287–1289

for_each() STL function, 991

fowl.cpp, 973

free memory storage, 182

free store, 454

free store (memory), 182–183

freeing memory, delete operator, 163–164

friend classes, 578–580, 877–888

base-class friends, accessing, 801–804

compared to class member functions, 886

templates, 858

bound template friend functions, 861–864

non-template friend functions, 858–861

unbound template friend functions, 864–865

Tv class example, 878–879, 883

tv.cpp, 880–882

tv.h, 879–880

tvfm.h, 885–886

use_tv.cpp, 882

friend functions, 578–580

creating, 579–580

type conversion, 618–621

friend keyword, 579–580

friend member functions, 578–580, 883

compared to friend classes, 886

example, 885–886

forward declaration, 884

shared friends, 888–889

frnd2tmp.cpp, 860–861

front insert iterators, 1005–1007

front() method, 1278

funadap.cpp, 1034–1035

function idioms, arrays, 331

function objects, 1026

Перейти на страницу:

Все книги серии Developer's Library

C++ Primer Plus
C++ Primer Plus

C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages.The sixth edition of C++ Primer Plus has been updated and expanded to cover the latest developments in C++, including a detailed look at the new C++11 standard.Author and educator Stephen Prata has created an introduction to C++ that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C++ language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use.Review questions and programming exercises at the end of each chapter help readers zero in on the most critical information and digest the most difficult concepts.In C++ Primer Plus, you'll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning:• A new detailed chapter on the changes and additional capabilities introduced in the C++11 standard• Complete, integrated discussion of both basic C language and additional C++ features• Clear guidance about when and why to use a feature• Hands-on learning with concise and simple examples that develop your understanding a concept or two at a time• Hundreds of practical sample programs• Review questions and programming exercises at the end of each chapter to test your understanding• Coverage of generic C++ gives you the greatest possible flexibility• Teaches the ISO standard, including discussions of templates, the Standard Template Library, the string class, exceptions, RTTI, and namespaces

Стивен Прата

Программирование, программы, базы данных

Похожие книги

1С: Бухгалтерия 8 с нуля
1С: Бухгалтерия 8 с нуля

Книга содержит полное описание приемов и методов работы с программой 1С:Бухгалтерия 8. Рассматривается автоматизация всех основных участков бухгалтерии: учет наличных и безналичных денежных средств, основных средств и НМА, прихода и расхода товарно-материальных ценностей, зарплаты, производства. Описано, как вводить исходные данные, заполнять справочники и каталоги, работать с первичными документами, проводить их по учету, формировать разнообразные отчеты, выводить данные на печать, настраивать программу и использовать ее сервисные функции. Каждый урок содержит подробное описание рассматриваемой темы с детальным разбором и иллюстрированием всех этапов.Для широкого круга пользователей.

Алексей Анатольевич Гладкий

Программирование, программы, базы данных / Программное обеспечение / Бухучет и аудит / Финансы и бизнес / Книги по IT / Словари и Энциклопедии
1С: Управление торговлей 8.2
1С: Управление торговлей 8.2

Современные торговые предприятия предлагают своим клиентам широчайший ассортимент товаров, который исчисляется тысячами и десятками тысяч наименований. Причем многие позиции могут реализовываться на разных условиях: предоплата, отсрочка платежи, скидка, наценка, объем партии, и т.д. Клиенты зачастую делятся на категории – VIP-клиент, обычный клиент, постоянный клиент, мелкооптовый клиент, и т.д. Товарные позиции могут комплектоваться и разукомплектовываться, многие товары подлежат обязательной сертификации и гигиеническим исследованиям, некондиционные позиции необходимо списывать, на складах периодически должна проводиться инвентаризация, каждая компания должна иметь свою маркетинговую политику и т.д., вообщем – современное торговое предприятие представляет живой организм, находящийся в постоянном движении.Очевидно, что вся эта кипучая деятельность требует автоматизации. Для решения этой задачи существуют специальные программные средства, и в этой книге мы познакомим вам с самым популярным продуктом, предназначенным для автоматизации деятельности торгового предприятия – «1С Управление торговлей», которое реализовано на новейшей технологической платформе версии 1С 8.2.

Алексей Анатольевич Гладкий

Финансы / Программирование, программы, базы данных