The C Standard Library Second Edition This page intentionally left blank The C Standard Library A Tutorial and Reference Second Edition Nicolai M Josuttis Upper Saddle River NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Capetown Sydney Tokyo Singapore Mexico City Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book and the publisher ......
The C++ Standard Library
Second Edition
This page intentionally left blank
The C++ Standard Library
A Tutorial and Reference
Second Edition
Nicolai M. Josuttis
Upper Saddle River, NJ
•
Boston
•
Indianapolis
•
San Francisco
New York
•
Toronto
•
Montreal
•
London
•
Munich
•
Paris
•
Madrid
Capetown
•
Sydney
•
Tokyo
•
Singapore
•
Mexico City
Many of the designations used by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in this book, and the publisher was aware of a
trademark claim, the designations have been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or
implied warranty of any kind and assume no responsibility for errors or omissions. No liability is
assumed for incidental or consequential damages in connection with or arising out of the use of the
information or programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or
special sales, which may include electronic versions and/or custom covers and content particular to
your business, training goals, marketing focus, and branding interests. For more information, please
contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States, please contact:
International Sales
international@pearson.com
Visit us on the Web: informit.com/aw
Library of Congress Cataloging-in-Publication Data
Josuttis, Nicolai M.
The C++ standard library : a tutorial and reference / Nicolai M. Josuttis.—2nd ed.
p. cm.
Includes bibliographical references and index.
ISBN 978-0-321-62321-8 (hardcover : alk. paper)
1. C++ (Computer program language) I. Title.
QA76.73.C153J69 2012
005.13’3-dc23
2011045071
Copyright
c
2012 Pearson Education, Inc.
A
This book was typeset by the author using the LTEX document processing system.
All rights reserved. Printed in the United States of America. This publication is protected by copy-
right, and permission must be obtained from the publisher prior to any prohibited reproduction,
storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical,
photocopying, recording, or likewise. To obtain permission to use material from this work, please
submit a written request to Pearson Education, Inc., Permissions Department, One Lake Street,
Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-3290.
ISBN-13: 978-0-321-62321-8
ISBN-10:
0-321-62321-5
Text printed in the United States on recycled paper at Edwards Brothers in Ann Arbor, Michigan.
OLED屏有多种,按颜色分有单色屏、双色屏及彩色屏;按尺寸分有0.91'、0.96'等;按接口分有I2C接口和SPI接口等。首先介绍一款0.91'的单色OLED屏驱动,它采用的是I2C接口,故只占用2个I/O口。具体的连接关系如下:SCLK---PB8SDIN---PB9输出高低电平的语句定义为:#define OLED_SCLK_Set() GPIOB-BSRE = GP
评论