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

sizeof operator, 71–73

smart pointers, 1158

selecting, 977–978

sort() function, 987–988, 1041, 1304, 1307

sort_heap() function, 1305

sort() method, 1016–1017, 1280

sort() STL function, 991

sorting

heaps, 1315

nth_element() function, 1304, 1308, 1315

partial_sort_copy() function, 1304, 1307–1308

partial_sort() function, 1304, 1307

sort() function, 1304, 1307

stable_sort() function, 1304, 1307

vectors, 987

source code, 19

definition of, 18

file extensions, 20

special meanings, identifiers, 1223

special member functions, 1178–1179

specializations

explicit, 425, 850–851

example, 426–428

third-generation specialization, 425–426

explicit instantiations, 850

implicit instantiations, 850

partial specializations, 851–852

specifiers

storage class, 472–473

splice() method, 1016, 1280

sqrt.cpp, 51

sqrt() function, 50–52

square() function, 381–382

stable_partition() function, 1295, 1303

stable_sort() function, 1304, 1307

stack, unwinding, 909–910, 913–914

stack class, 831–836

pointers, 837–843

templates, 1018

stack containers, 1018

stack.cpp, 554–555

stack.h, 553–554

stacker.cpp, 556–557

stacks, 553–557

automatic variables, 458–459

stacktem.cpp, 835–836

stacktp.h, 834

standard C++, converting to, 1327

autoptr template, 1333

C++ features, 1331

const instead of #define, 1327–1329

function prototypes, 1330

header files, 1331

inline instead of #define, 1329–1330

namespaces, 1331–1333

STL (Standard Template Library), 1334

string class, 1333

type casts, 1330–1331

Standard Input/Output, ANSI C, 1062

Standard Template Library. See STL

state members, 597–599

statements, 41

assignment statements, 43–44

blocks, 212–214

break, 280–282

cin, 46

loops, 234–235

compared to expressions, 201

continue, 280–282

cout, 36

concatenated output, 46–47

cout.put() function, 83–84

endl manipulator, 37–38

integer values, displaying, 44–45

\n newline character, 38–39

declaration statements, 41–43

defined, 29–30

enum, 278–280

examples, 41, 45

for, declaration-statement expressions, 203

if, 254

bug prevention, 260

example, 255

syntax, 254

if else, 255

example, 256–257

formatting, 257–258

if else if else construction, 258–260

syntax, 255

return statements, 30

switch, 274–278

enumerators as labels, 278–280

example, 275–278

syntax, 275

terminators, 30

void, 53

static assert, 1204

static binding, 164, 172–173, 737, 740

static_cast operator, 945–946

static class members, 628–637

static keyword, 183, 472

functions, 475

static memory storage, 182–183

static storage duration, 453

static type checking, 313

static variables, 453, 459–462, 466

external, 466

external linkage, 463, 466–467

internal linkage, 467–470

no linkage, 470–472

static.cpp, 470–471

stcktp1.h, 839–840

std namespace, 59

stdexcept exception classes, 918–920

Stepanov, Alexander, 978, 1205

stkoptr1.cpp, 841–842

STL (Standard Template Library), 978, 1041, 1044, 1271, 1334

algorithms, 1035

groups, 1035–1036

properties, 1036–1037

associative containers, 1018, 1026

multimap, 1023–1025

set, 1019–1022

binary search operations

binary_search() function, 1304, 1310

equal_range() function, 1304, 1309

lower_bound() function, 1304, 1309

upper_bound() function, 1304, 1309

C++11, 1271

containers, 1271–1273

container concepts, 1007

container methods compared to functions, 1039–1041

properties, 1008–1010

sequence requirements, 1011–1012

container methods, 1275–1277

container types

deque, 1013

list, 1014–1017

priority_queue, 1017–1018

queue, 1017

stack, 1018

vector, 1012–1013

containers, 1161

deque methods, 1278–1280

functions, 1286

adjacent_find(), 1287, 1290

copy(), 1293–1296

copy_backward(), 1294–1297

count(), 1287, 1291

count_if(), 1287, 1291

equal(), 1288, 1291–1292

fill(), 1294, 1299

fill_n(), 1294, 1299

find(), 1287–1289

find_end(), 1287–1290

find_first_of(), 1287, 1290

find_if(), 1287–1289

for_each(), 1287–1289

generate(), 1294, 1299

generate_n(), 1294, 1299

iter_swap(), 1294

mismatch(), 1288, 1291

partition(), 1295, 1302–1303

random_shuffle(), 1295, 1302

remove(), 1295, 1299

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

Все книги серии 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.

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

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

Все жанры