[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-347400-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-347400-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","how-to-program-eighth-edition-with-an-introduction-to-c","HOW TO PROGRAM - Eighth Edition - with an Introduction to C++","","A global edition of “How to Program” presenting an introduction to C++ and foundational programming concepts. The material credits Paul Deitel and Harvey Deitel and includes global edition contributors. It provides publication and copyright information, trademark notices, and acknowledgements, and introduces an initial structure of learning with a preface and an opening chapter focused on computers, the Internet, and the Web, including hardware/software and related language fundamentals.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/how-to-program-eighth-edition-with-an-introduction-to-c/347400/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/how-to-program-eighth-edition-with-an-introduction-to-c/347400.png","ImageObject",300,407,{"name":42,"@type":43},"Rowan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-09-22",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",18,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Who are the authors credited in this global edition?","Question",{"text":63,"@type":64},"The work credits Paul Deitel and Harvey Deitel as authors.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What programming language focus does the book emphasize?",{"text":68,"@type":64},"It emphasizes C++ through an introduction, alongside foundational programming concepts starting from computer and language basics.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the main topic of the first numbered chapter?",{"text":72,"@type":64},"Chapter 1 introduces computers, the Internet, and the Web, covering hardware/software, data hierarchy, and programming language levels.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},347400,1790437198,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":99,"preview_urls":147},1099514067415,"https://ap-avatar.wpscdn.com/avatar/100002539d78ffe74a7?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779092875211072502","HOW TO PROGRAM   \nEIGHTH EDITION GLOBAL EDITION  \nwith an introduction to C++  \nThis page intentionally left blank  \nHOW TO PROGRAM   \nEIGHTH EDITION GLOBAL EDITION  \nwith an introduction to C++  \nPaul Deitel  \nDeitel & Associates, Inc.  \nHarvey Deitel  \nDeitel & Associates, Inc.  \nGlobal Edition contributions by  \nPiyali Sengupta  \nBoston Columbus Hoboken Indianapolis New York San Francisco Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City S˜ao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo  \nVice President and Editorial Director, ECS: Marcia J. Horton  \nExecutive Editor: Tracy Johnson (Dunkelberger)  \nEditorial Assistant: Kelsey Loanes  \nAssistant Acquisitions Editor, Global Editions: Aditee Agarwal  \nProgram Manager: Carole Snyder  \nProject Manager: Robert Engelhardt  \nProject Editor, Global Editions: K.K. Neelakantan  \nMedia Team Lead: Steve Wright R&P Manager: Rachel Youdelman  \nR&P Senior Project Manager: William Opaluch Senior Operations Specialist: Maura Zaldivar-Garcia  \nSenior Manufacturing Controller, Global Editions: Kay Holman  \nInventory Manager: Bruce Boundy  \nMarketing Manager: Demetrius Hall  \nProduct Marketing Manager: Bram Van Kempen  \nMedia Production Manager, Global Editions: Vikram Kumar  \nMarketing Assistant: Jon Bryant  \nCover Designer: Chuti Prasertsith / Michael Rutkowski / Marta Samsel  \nCover Art: © Igoror / Shutterstock Pearson Education Limited  \nEdinburgh Gate Harlow  \nEssex CM20 2JE England  \nand Associated Companies throughout the world  \nVisit us on the World Wide Web at: [www.pearsonglobaleditions.com](www.pearsonglobaleditions.com)[ ](www.pearsonglobaleditions.com)© Pearson Education Limited 2016  \nThe rights of Paul Deitel and Harvey Deitel to be identified as the authors of this work have been asserted by them in accordance with the Copyright, Designs and Patents Act 1988.  \nAuthorized adaptation from the United States edition, entitled CHow to Program: with an introduction to C++,8st edition, ISBN 978-0-13-397689-2, by Paul Deiteland Harvey Deitel published by Pearson Education © 2016.  \nAll rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without either the prior written permission of the publisher or a license permitting restricted copying in the United Kingdom issued by the Copyright Licensing Agency Ltd, Saffron House, 6–10 Kirby Street, London EC1N 8TS.  \nAll trademarks used herein are the property of their respective owners. The use of any trademark in this text does not vest in the author or publisher any trademark ownership rights in such trademarks, nor does the use of such trademarksimply any affiliation with or endorsement of this book by such owners.  \nBritish Library Cataloguing-in-Publication Data  \nA catalogue record for this book is available from the British Library 10 9 8 7 6 5 4 3 2 1  \nISBN 10: 1-292-11097-X  \nISBN 13: 978-1-292-11097-4 Typeset by GEX Publishing Services Printed in Malaysia  \nIn memory of Dennis Ritchie,  \ncreator of the C programming language  \nand co-creator of the UNIX operating system. Paul and Harvey Deitel  \nTrademarks  \nDEITEL, the double-thumbs-up bug and DIVE INTO are registered trademarks of Deitel and Associates, Inc.  \nApple, Xcode, Swift, Objective-C, iOS and OS X are trademarks or registered trademarks of Apple, Inc. Java is a registered trademark of Oracle and/or its affiliates.  \nMicrosoft and/or its respective suppliers make no representations about the suitability of the information contained in the documents and related graphics published as part of the services for any purpose. All such documents and related graphics are provided “as is” without warranty of any kind. Microsoft and/ or its respective suppliers hereby disclaim all warranties and conditions with regard to this information, including all warranties and conditions of merchan","cbCaii2AVlYhlBxu","https://ap.wps.com/l/cbCaii2AVlYhlBxu","pdf",5686265,1006,"English","# Preface\n# 1 Introduction to Computers, the Internet and the Web\n## 1.1 Introduction\n## 1.2 Hardware and Software\n## 1.2.1 Moore’s Law\n## 1.2.2 Computer Organization\n## 1.3 Data Hierarchy\n## 1.4 Machine Languages, Assembly Languages and High-Level Languages\n## 1.5 The C Programming Language\n## 1.6 C Standard Library\n## 1.7 C++ and Other C-Based Languages\n## 1.8 Object Technology\n## 1.9 Typical C Program-Development Environment","[{\"question\":\"Who are the authors credited in this global edition?\",\"answer\":\"The work credits Paul Deitel and Harvey Deitel as authors.\"},{\"question\":\"What programming language focus does the book emphasize?\",\"answer\":\"It emphasizes C++ through an introduction, alongside foundational programming concepts starting from computer and language basics.\"},{\"question\":\"What is the main topic of the first numbered chapter?\",\"answer\":\"Chapter 1 introduces computers, the Internet, and the Web, covering hardware/software, data hierarchy, and programming language levels.\"}]","HOW TO PROGRAM - Eighth Edition - with an Introduction to C++ | PDF",1790066788,2535,[148,152,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,226,230,234,239,244,249,254,259,264,269,274,279,283,288,293,298,303,308,313,318,323,328,332,337,342,347,352,357,362,367,372,377,381,386,391,396,401,406,411,416,421,426],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/31cb7236633968e44f84e84d13b07277.webp",983,1280,{"page_no":26,"url":153,"width":154,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4140c343762bae3299bd907dc1d39086.webp",982,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d3fa76913f99af501905405e87c43c1f.webp",981,1279,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/cf04c7a8126d227ecf39adf2416b388d.webp",980,1277,{"page_no":97,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/18d403af6df7d75ae64d2d5516dcbacd.webp",979,1276,{"page_no":102,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/fbc7f8691fe18a08c78cf22732d0935b.webp",978,1275,{"page_no":106,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3dd7a02ae81e758d1bc43048a593dd0b.webp",977,1273,{"page_no":111,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/77248b66f738392bec19b431493a90b5.webp",976,1272,{"page_no":116,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/22083fdb550386e9dc9c68659586a937.webp",975,1271,{"page_no":124,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b3a003de4ed8af40cc9697f10ad79998.webp",974,1269,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6e693ef027c37c38beb598cdbe97efb2.webp",973,1268,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/00eb79a302dd4e2c949985457be8aecf.webp",972,1267,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e4a438fe3262542c044857685587f68c.webp",971,1266,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/aada9ca1dc6943da2e864dcbc8c63f8c.webp",970,1264,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a75dcb7a25ff84121005ec34dcf7f4e1.webp",969,1263,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/832ca00a158cefdf85ee4a3aa406c339.webp",968,1262,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7a6360d7ba75c98f450bf60ebf4b4833.webp",967,1260,{"page_no":55,"url":223,"width":224,"height":225},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8bb58b2751244290d31001084314e0d3.webp",966,1259,{"page_no":128,"url":227,"width":228,"height":229},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a03afc37065b2539a28f4343a6a9953f.webp",965,1258,{"page_no":118,"url":231,"width":232,"height":233},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/bcea2768bf752e3a28331fed09aa3790.webp",964,1256,{"page_no":235,"url":236,"width":237,"height":238},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6bbae3b95a593fc52614ffa74f8fb764.webp",963,1255,{"page_no":240,"url":241,"width":242,"height":243},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/adff2203114fe2373a7c827ba83b47a4.webp",962,1254,{"page_no":245,"url":246,"width":247,"height":248},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c6042141fc7530a565c98971301f7528.webp",961,1252,{"page_no":250,"url":251,"width":252,"height":253},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3fdaabb90698d91daecd998cc59d90ff.webp",960,1251,{"page_no":255,"url":256,"width":257,"height":258},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d024d99f0d51fe74d549697c166b5599.webp",959,1250,{"page_no":260,"url":261,"width":262,"height":263},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1a9307f279fd7cdabadeba0bc5b0e901.webp",958,1249,{"page_no":265,"url":266,"width":267,"height":268},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2fa2cdd499cba72d65148b06ec7096dd.webp",957,1247,{"page_no":270,"url":271,"width":272,"height":273},28,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9215853df1547addbf6caf2a31ddc4ab.webp",956,1246,{"page_no":275,"url":276,"width":277,"height":278},29,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ed9e1d835a279f7130e6b0d572b1bea5.webp",955,1245,{"page_no":113,"url":280,"width":281,"height":282},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ee8bfc6abfa4c0de58af66f325a67375.webp",954,1243,{"page_no":284,"url":285,"width":286,"height":287},31,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8e3ca9e7fe7c86e262ab13d1c8ed440b.webp",953,1242,{"page_no":289,"url":290,"width":291,"height":292},32,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8c8513ad6d51998d0aa58649e845089d.webp",952,1241,{"page_no":294,"url":295,"width":296,"height":297},33,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/bc2704bbcfeaec8785bf8e4417648366.webp",951,1239,{"page_no":299,"url":300,"width":301,"height":302},34,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/820a5ce4547b8e4b7fad774e7bc3d007.webp",950,1238,{"page_no":304,"url":305,"width":306,"height":307},35,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c35341f8be8a4424f977cf5cf302fe0c.webp",949,1237,{"page_no":309,"url":310,"width":311,"height":312},36,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/59c187cb8437baa3a0f2d96c87ca0f45.webp",948,1236,{"page_no":314,"url":315,"width":316,"height":317},37,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/da050caa4655c0aafe8e27a269d2dc69.webp",947,1234,{"page_no":319,"url":320,"width":321,"height":322},38,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ead49cf7b91ebd294482d94aab7ab376.webp",946,1233,{"page_no":324,"url":325,"width":326,"height":327},39,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c9a4076169a123686df15a9b9e634cb3.webp",945,1232,{"page_no":108,"url":329,"width":330,"height":331},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7b73b2acbad76ed10c2bd831246bf5c1.webp",944,1230,{"page_no":333,"url":334,"width":335,"height":336},41,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6c0797b71380d749399f948be420a45b.webp",943,1229,{"page_no":338,"url":339,"width":340,"height":341},42,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/bbf2c1ef5e4ecf3bb56ad215940c44d8.webp",942,1228,{"page_no":343,"url":344,"width":345,"height":346},43,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/719674db8de2a3a8c97db08f8ef9d65c.webp",941,1226,{"page_no":348,"url":349,"width":350,"height":351},44,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b559837e2527c4c5140d1ef40bb9de23.webp",940,1225,{"page_no":353,"url":354,"width":355,"height":356},45,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7420a2fbbfa32073f4ecdbf1280d7a99.webp",939,1224,{"page_no":358,"url":359,"width":360,"height":361},46,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/21a1f63e44feb6d483091fccee407fc9.webp",938,1222,{"page_no":363,"url":364,"width":365,"height":366},47,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/38c4e701971216035031f975fbaf76b4.webp",937,1221,{"page_no":368,"url":369,"width":370,"height":371},48,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0d41874e416fb506784433d187b8cd9a.webp",936,1220,{"page_no":373,"url":374,"width":375,"height":376},49,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f28e073bb6388e946fc5af42e8bc191c.webp",935,1219,{"page_no":103,"url":378,"width":379,"height":380},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f80ab97a36307420dfb863be68051ddd.webp",934,1217,{"page_no":382,"url":383,"width":384,"height":385},51,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3f13dfd96bbe2fcb7a1472a5f8294a8c.webp",933,1216,{"page_no":387,"url":388,"width":389,"height":390},52,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b3ab8c3c0b57bbd8a4ce907a4760b339.webp",932,1215,{"page_no":392,"url":393,"width":394,"height":395},53,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/323bd5a786e2c27f009d0505c64e72c7.webp",931,1213,{"page_no":397,"url":398,"width":399,"height":400},54,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0f4ee07d5bd6a618d40e950a95201852.webp",930,1212,{"page_no":402,"url":403,"width":404,"height":405},55,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b6bc5e942cf63ef53112ae8aa3d5f0eb.webp",929,1211,{"page_no":407,"url":408,"width":409,"height":410},56,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ab69721b2ef3d3226ec7a2b9ac3516c9.webp",928,1209,{"page_no":412,"url":413,"width":414,"height":415},57,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5bbedf1cc3a28ea92ddfe162f9f4c394.webp",927,1208,{"page_no":417,"url":418,"width":419,"height":420},58,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d6ea2d9c5690f12cc0d9474cdb44efca.webp",926,1207,{"page_no":422,"url":423,"width":424,"height":425},59,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a046acf10b392545d0389c5bd4560532.webp",925,1206,{"page_no":99,"url":427,"width":428,"height":429},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c297bb9229c85ec58f4ac9740f928eab.webp",924,1204]