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

Brass class declaration, 723–726

Brass class implementation, 727, 730–731

Brass class objects, 732–733

BrassPlus class declaration, 723–726

BrassPlus class implementation, 727, 730–731

BrassPlus class objects, 732–733

constructors, 742

dynamic binding, 737–740

pointer compatibility, 737–739

reference type compatibility, 737–739

static binding, 737, 740

virtual destructors, 737, 742–743, 776

virtual functions, 739–742, 775–776

behavior, 734–736

friends, 743, 776

memory and execution speed, 742

redefinition, 743–745

virtual function tables, 740

public interfaces, 509

public keyword, 511–513

public member functions, 513

pure virtual functions, 748

push_back() function, 1041

push back() method, 982–984

push_heap() function, 1305

pushing values onto heap, 1314

put() method, 1071–1075

putback() member function, 1109–1114

Q

qualified, inline, 517

qualified names, 486

qualified names (functions), 514

qualifiers

cv-qualifiers, 472–473

const, 473–474

volatile, 473

keywords, 473

Queue class

class declaration, 691, 694

design, 679

implementation, 680–682

methods, 682–690

public interface, 679–680

queue class templates, 1017

queue containers, 1017

Queue() function, 683

queue simulation, 678

bank.cpp simulation, 694–698

Customer class, 690–691, 694

Queue class

class declaration, 691, 694

design, 679

implementation, 680–682

methods, 682–690

public interface, 679–680

queue.cpp, 692–694

queue.h, 691–692

queuecount() function, 685

queuetp.h, 893–895

quotation marks (), 36

R

rand() function, 53, 605

random access, files, 1133–1141

temporary files, 1141–1142

random access iterators, 999

Random Walk sample program, 603

random.cpp, 1138–1139

random_shuffle() function, 987–988, 1295, 1302

random_shuffle() STL function, 991

randwalk.cpp, 603

range-based for loop

C++11, 233–234

templates, 1161

range_error exception, 919

ranges, logical AND operator (&&), 265–267

ranges (arrays), 332–334

RatedPlayer class, 711–712

header files, 716

method definitions, 716

RatedPlayer object, 717–718

Rating() method, 719

rbegin() method, 1251, 1275

rdstate() stream state method, 1098–1102

read() member function, 1109–1114, 1130–1133

reading

C-style strings

get(), 127–130

getline(), 126–127

from files, 1116–1118

string class strings, 136–140

text files, 292–298

text with loops, 234

cin.get() function, 235–237, 241–244

cin object, 234–235

end-of-file conditions, 237–241

sentinel characters, 234

real numbers, 50

recommended reading, 1323–1324

rect_to_polar() function, 348–349

rectangular coordinates, 346

converting to polar coordinates, 348–351

recur.cpp, 355, 358

recurs() function, 357–359

recursion, 357

multiple recursive calls, 359–361

single recursive call, 358–359

variadic template functions, 1199–1202

recursive use of templates, 846–847

redefining virtual functions, 743–745

redirecting I/O, 1067–1068

redirection, 238

refcube() function, 391–393

reference, passing by, 343, 386, 389–390, 770

reference arguments, 392–394, 408–409

reference counting, 973

reference operator (&), 383–386

reference parameters, overloading, 415

reference returns, const, 400

reference type, 1273

reference variables, 383

arguments, 408–409

class objects, 401–405

creating, 383–386

function parameters, 386, 389–390

inheritance, 405–408

initialization, 385

properties, 390–391

structures, 394, 397–399

const keyword, 401

return references, 399–400

references

inheritance, 737–739

returning, 399, 770–771

referencing declarations, 463

refinement, 1001

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

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

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

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