C++26 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
暫譯: 懶人學 C++26:快速、簡單、有趣的 C++ 初學者指南
Briggs, Will
相關主題
商品描述
Ready to learn programming with less effort and more fun? Then do it the lazy way! C++26 for Lazy Programmers uses humor and fun to make you actually willing to read and eager to do the projects as you master the popular and powerful C++ language. Along the way it introduces features from the new C++26 standard including increased support for compile-time computation with constexpr and static_assert, as well as contracts, and covers ranges, views, move semantics, format strings, smart pointers, lambda functions and concepts (template parameter requirements), and provides brief introductions to coroutines and lazy evaluation. With this unique method, you'll stretch your abilities with a variety of projects, including your own C++ arcade game. You'll construct your own classes, templates, and abstract data types. After reading and using this book you'll be ready to build real-world C++ applications and game projects on your own. What You Will Learn:
- Explore the brand-new C++26 standard Program graphics and games with the SDL library, using SSDL, the "Simple SDL" wrapper library Use the most common C++ compilers - Visual Studio in Windows; g++ with Ubuntu, Fedora, Manjaro or Debian Unix, or MSys2 - and their associated debuggers Apply "anti-bugging" techniques for easy fixes to common problems Incorporate best practices for becoming a productive programmer Create your own big projects, including a C++-based arcade game Leverage STL functions and classes for easy and efficient programming Handle the Unicode (UTF-8) output Understand the uses and limits of views for efficiently pipelining data Learn core data types (strings, queues, vectors, linked lists) not by reading about them but by building them from scratch Navigate the basics of C, the still powerful and popular ancestor of C++
商品描述(中文翻譯)
準備好以更輕鬆且有趣的方式學習程式設計了嗎?那就用懶人的方式來學習吧!《C++26 for Lazy Programmers》利用幽默和趣味讓你真正願意閱讀,並渴望進行專案,掌握這個流行且強大的 C++ 語言。
在這本書中,將介紹新 C++26 標準中的特性,包括對於編譯時計算的增強支援,如 constexpr 和 static_assert,以及合約(contracts),並涵蓋範圍(ranges)、視圖(views)、移動語義(move semantics)、格式字串(format strings)、智慧指標(smart pointers)、Lambda 函數和概念(template parameter requirements),並簡要介紹協程(coroutines)和懶惰評估(lazy evaluation)。
透過這種獨特的方法,你將透過各種專案來拓展自己的能力,包括你自己的 C++ 街機遊戲。你將構建自己的類別、模板和抽象資料類型。閱讀並使用這本書後,你將能夠獨立構建實際的 C++ 應用程式和遊戲專案。
你將學到什麼:
- 探索全新的 C++26 標準
- 使用 SDL 函式庫編寫圖形和遊戲,並使用 SSDL,這個「簡單 SDL」的包裝函式庫
- 使用最常見的 C++ 編譯器 - Windows 的 Visual Studio;在 Ubuntu、Fedora、Manjaro 或 Debian Unix,或 MSys2 上使用 g++ 及其相關的除錯工具
- 應用「反除錯」技術,輕鬆修復常見問題
- 採用最佳實踐,成為高效的程式設計師
- 創建自己的大型專案,包括基於 C++ 的街機遊戲
- 利用 STL 函數和類別進行簡單且高效的程式設計
- 處理 Unicode (UTF-8) 輸出
- 理解視圖的用途和限制,以有效地管道化數據
- 學習核心資料類型(字串、佇列、向量、鏈結串列),不是透過閱讀,而是從零開始構建它們
- 掌握 C 語言的基礎,這個仍然強大且流行的 C++ 祖先
本書適合誰
所有對 C++ 新手,無論是自學者還是大學課程的學生。
作者簡介
Will Briggs, PhD is a professor of computer science at the University of Lynchburg in Virginia. He has 30 years experience teaching C++, 18 of them using earlier drafts of this book, and about as many years teaching other languages including C, Javascript, LISP, Pascal, PHP, PROLOG, and Python. His primary focus is teaching of late while also active in research in artificial intelligence.
作者簡介(中文翻譯)
威爾·布里格斯(Will Briggs),博士,是維吉尼亞州林奇堡大學的計算機科學教授。他擁有30年的C++教學經驗,其中18年使用本書的早期草稿,並且有同樣多的時間教授其他語言,包括C、JavaScript、LISP、Pascal、PHP、PROLOG和Python。他最近的主要專注於教學,同時也積極從事人工智慧的研究。