在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → C++17 By Example

C++17 By Example

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.45M
  • 下载次数:5
  • 浏览次数:129
  • 发布时间:2021-03-04
  • 实例类别:一般编程问题
  • 发 布 人:好学IT男
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
C++17 By Example Stefan Björnander February 2018 Discover the impressive capabilities of C++ and learn the skills you need to implement it in real life C++ is a general-purpose programming language built with a bias towards embedded programming and systems programming. Over the years, C++ has evolv
C++17 By Example Copyright o 2018 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However the information contained in this book is sold without warranty, either express or implied Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information Commissioning editor: Merint Mathew Acquisition Editor: Chaitanya nair Content Development Editor: Lawrence Veigas Technical Editor: Adhithya Haridas Copy Editor: Safis Editing Project Coordinator: Prajakta Naik Proofreader: Safis Editing Indexer: Aishwarya gangawane Graphics: Jisha Chirayil Production Coordinator: Deepika naik First published: February 2018 Production reference: 1220218 Published by packt Publishing ltd Livery place 35 Livery street Birmingham B3 2PB, UK ISBN978-1-78839-181-8 www.pAcktpub.com I dedicate this book to my parents, Ralf and gunilla, my sister Catharina, her husband, Magnus, and their sons, Emil and rasmus Mapt mapt.lo Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals Improve your learning with skill plans built especially for you Get a free eBook or video every month mapt is fully searchable Copy and paste, print, and bookmark content PacktPub, com Did you know that packt offers e Book versions of every book published, with PDF and epubfilesavailableYoucanupgradetotheeboOkversionatwww.PacktPub.comandasa print book customer, you are entitled to a discount on the e Book copy. Get in touch with us at service@packtpub com for more details Atwww.packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfora range of free newsletters and receive exclusive discounts and offers on packt books and eBooKs Contributors About the author Stefan bjornander is the author of the books microsoft Windows C++ and C++ windows Programming. He holds a Master of Engineering and a Licentiate in Computer Science. He has worked as a software developer and as a teacher in computer science and mathematics for many year About the reviewer Mark elston is a software architect for an automated test equipment company working primarily in the ic and mobile device test world However, his 30 years of experience includes developing aircraft and missile simulations for the Air Force and Navy, hardware control systems for NASA, and tester operating systems for commercial products. He has also developed several Android applications for fun. His latest passion is delving into the world of functional programming and design I would like to thank my wife for her understanding when I had a chapter to finish reviewing. I would also like to thank the Pack team for giving me the opportunity to work with them on this project. It has been enlightening and entertaining Finally, I would like to thank the author for taking even my smallest comments into account. It is a pleasure to be part of a project where your input is valued Packt is searching for authors like you If you re interested in becoming an author for Packt, please visit authors. packtpub com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea Table of contents Preface Chapter 1: Getting Started with C++ Rolling the dice Understanding classes- the car class 14 Extending the car class A class hierarchy-the Person, Student, and Employee classes 24 A simple data type- the stack 29 A more advanced data type -the queue 33 Summary 36 Chapter 2: Data Structures and Algorithms The list class 38 The cell class 38 The iterator class 39 The list class 41 Adding a list to an existing list 46 Erasing a value from the list 48 The Set class 51 Union intersection . and difference operations 57 Basic searching and sorting 59 The select sort algorithm 60 The insert sort algorithm 61 The bubble sort algorithm 62 The extended list class 65 The reverselterator class 67 The extended set class 82 Union intersection and difference 84 Advanced searching and sorting 89 The merge sort algorithm The quick sort algorithm 92 Summary 93 Table of contents Chapter 3: Building a Library Management System The book class 95 Writing the book 98 Reading the book 98 Borrowing and reserving the book 100 Displaying the book 100 The Customer class 101 Reading the customer from a file 103 Writing the customer to a file 104 Borrowing and reserving a book 105 Displaying the customer 105 The Library class 106 Looking up books and customers 110 Adding a book 111 Deleting a book 111 Listing the books 112 Adding a customer 113 Deleting a customer 114 Listing the customers 115 Borrowing a book 115 Reserving a book Returning a Book 118 Saving the library information to a file 120 Loading the library information from a file 120 The main function 121 Summary 122 Chapter 4: Library Management System with Pointers 123 The book class Reading and writing the book 126 Borrowing and reserving the book 127 Displaying the book 127 The Customer class 128 Reading and writing the customer 130 Borrowing and reserving a book 130 Displaying the customer 131 [i] Table of contents The Library class 132 Looking up books and customers 135 Adding a book 136 Deleting a book 136 Listing the books 138 Adding a customer 138 Deleting a customer 139 Listing the customers 140 Borrowing a book 141 Reserving a book 142 Returning a book 144 Looking up books and customers 145 Marshmallowing 147 Saving the library information to a file 147 Writing the book objects 147 Writing the customer objects 148 Writing the borrower index 148 Writing the reservation indexes 149 Writing the loan book indexes 150 Writing the reservation book indexes 150 Loading the library information from a file 151 Reading the book objects 151 eading the customer objects 152 Reading the borrower index 152 Reading the reservation indexes 153 Reading the loan book indexes 153 Reading the reservation book indexes 154 Deallocating memory 155 The main function 155 Summary 156 Chapter 5: Qt Graphical Applications 157 Creating the clock application 157 Setting up the environment 158 The Clock class 158 The main function 163 Setting up reusable classes for windows and widgets 165 【实例截图】
【核心代码】

标签:

实例下载地址

C++17 By Example

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警