Читаем Thinking In C++. Volume 2: Practical Programming полностью

Effective C++, 2nd Edition, by Scott Meyers (Addison-Wesley, 1997). Classic book of techniques to improve C++ designs. Codifies many of the things that programmers have to learn the hard way.

More Effective C++, by Scott Meyers (Addison-Wesley, 1995) Continuation of Effective C++ (above). Another C++ classic.

Effective STL, by Scott Meyers (Addison-Wesley, 2001). Extremely practical, in-depth coverage of how to use the STL. Contains expert advice found nowhere else.

Generic Programming and the STL, by Matt Austern (Addison-Wesley, 1998). Explores the conceptual underpinnings of the design of the STL. Heavy on theory, but imparts a visionary look into the design of generic libraries.

Exceptional C++, by Herb Sutter (Addison-Wesley, 2000). Leads the reader through a progression of problems and their solution. Gives easy-to-remember advice for solid design of modern C++ programs.

More Exceptional C++, by Herb Sutter (Addison-Wesley, 2001). Continuation of Exceptional C++ (above).

C++ FAQs, 2nd Edition, by Marshall Cline, Greg Lomow, and Mike Girou (Addison-Wesley, 1998). Nicely-structured compendium of common C++ questions and their answers. Covers a broad range of topics, from beginner to advanced.

C++ Gotchas, by Stephen Dewhurst (Addison-Wesley, 2002). Contemporary catalog of easy-to-discover but hard-to-remedy C++ quirks by a widely-renowned recognized C++ expert.

C++ Templates, The Complete Guide, by David Vandervoorde and Nicolai M. Josuttis (Addison-Wesley, 2002). The first and only book devoted completely to templates. The definitive reference.

Standard C++ IOStreams and Locales, by Angelika Langer and Klaus Kreft (Addison-Wesley, 2000). The most in-depth coverage of iostreams available. Plumbs the depths of streams implementation and idiomatic use. A handy reference as well as tutorial.

Design & Evolution of C++, by Bjarne Stroustrup (Addison-Wesley, 1994). Traces the complete history of C++, documenting the design decisions that were made along the way. If you want to know why C++ is the way it is, this is the book with the answers, written by the designer of the language.

Modern C++ Design, by Andrei Alexandrescu (Addison-Wesley, 2001). The standard text on policy-based design in C++. Filled with practical, advanced uses of templates.

Generative Programming, by Krzysztof Czarnecki and Ulrich Eisencecker, (Addison-Wesley, 2000). Ground-breaking book on highly-advanced C++ techniques. Takes software automation to the next level.

Multi-Paradigm Design for C++, by James O. Coplien (Addison-Wesley, 1998). Advanced text showing how to harmonize the use of procedural, object-oriented, and generic programming for effective C++ designs.

<p>Design Patterns</p>

Design Patterns, by Erich Gamma et al (Addison-Wesley, 1995). The revolutionary book that introduced design patterns to the industry. Catalogs a critical of design patterns with motivation and examples (using C++ and a little SmallTalk).

Pattern-Oriented System Architecture, Volume 1: A System of Patterns, by Frank Buschmann et al (John Wiley & Son, 1996). Another look at design patterns in practice. Introduces new design patterns.

[ ]

<p>B: Etc</p>

This appendix contains files that are required to build the files in Volume 2.

//: :require.h

// Test for error conditions in programs

// Local "using namespace std" for old compilers

#ifndef REQUIRE_H

#define REQUIRE_H

#include

#include

#include

inline void require(bool requirement,

  const char* msg = "Requirement failed") {

  using namespace std;

  if (!requirement) {

    fputs(msg, stderr);

    fputs("\n", stderr);

    exit(EXIT_FAILURE);

  }

}

inline void requireArgs(int argc, int args,

  const char* msg = "Must use %d arguments") {

  using namespace std;

   if (argc != args + 1) {

     fprintf(stderr, msg, args);

     fputs("\n", stderr);

     exit(EXIT_FAILURE);

   }

}

inline void requireMinArgs(int argc, int minArgs,

  const char* msg =

    "Must use at least %d arguments") {

  using namespace std;

  if(argc < minArgs + 1) {

    fprintf(stderr, msg, minArgs);

    fputs("\n", stderr);

    exit(EXIT_FAILURE);

  }

}

inline void assure(std::ifstream& in,

  const char* filename = "") {

  using namespace std;

  if(!in) {

    fprintf(stderr,

      "Could not open file %s\n", filename);

    exit(EXIT_FAILURE);

  }

}

inline void assure(std::ofstream& in,

  const char* filename = "") {

  using namespace std;

  if(!in) {

    fprintf(stderr,

      "Could not open file %s\n", filename);

    exit(EXIT_FAILURE);

  }

}

inline void assure(std::fstream& in,

  const char* filename = "") {

  using namespace std;

  if(!in) {

    fprintf(stderr,

      "Could not open file %s\n", filename);

    exit(EXIT_FAILURE);

  }

}

#endif // REQUIRE_H ///:~

//: C0B:Dummy.cpp

// To give the makefile at least one target

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

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

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

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

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

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

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

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

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