C Brain Teasers: Exercise Your Mind
Gookin, Dan
- 出版商: Pragmatic Bookshelf
- 出版日期: 2024-04-30
- 售價: $1,480
- 貴賓價: 9.5 折 $1,406
- 語言: 英文
- 頁數: 120
- 裝訂: Quality Paper - also called trade paper
- ISBN: 9798888650486
- ISBN-13: 9798888650486
-
相關分類:
C 程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
You thought you knew C, but can you solve 25 puzzles in this popular programming language? Noted C programmer and author Dan Gookin provides a series of pointed questions, puzzles, and problems to keep your C programming skills sharp. Each one will provide insight into various aspects of handling strings, numeric operations, and other activities, giving you techniques to take the best advantage of all C has to offer. Challenge yourself, and get to know some powerful tricks and details for writing better, faster, more accurate C code.
Most C programming books present the information sequentially, teaching you the right way to code and only rarely describing what could go wrong. In this book, the goal is to find out what did go wrong - or what potentially goes right. Explore interesting and unusual programming concepts and approaches with small, to-the-point, programs and exercises. Hone your C programming skills and expand your knowledge.
By working through the brain teasers in this book, you'll fill in gaps in your knowledge and work with advanced concepts such as pointers and recursion. All of the teaser topics were selected to give you food for thought, explaining the technical details behind each puzzle. Look at a code sample and try to guess what output it will give. Code it yourself and see the result. Is it what you expected? Then read the author's lighthearted explanation of exactly why the language does what it does, and how you can take advantage of it. You'll come away with a much better understanding of how the language works, and how to use it for efficient and effective programming.
What You Need:
You need to know the basics of coding in C, and have an environment for compiling and executing your C code. Any Windows, MacOS, or Linux system with a C compiler does the job. Use the terminal window for traditional C programming. Or obtain an Integrated Development Enviornment (IDE) such as Visual Studio Code, which contains all the software tools you need: Editor, Compiler, and Output.
商品描述(中文翻譯)
你以為你對C語言很熟悉,但你能解決這本流行的程式設計語言中的25個謎題嗎?著名的C程式設計師和作家丹·古金(Dan Gookin)提供了一系列有針對性的問題、謎題和問題,以保持你的C程式設計技能磨練。每個問題都會提供有關處理字符串、數值運算和其他活動的各種方面的見解,讓你充分利用C語言的優勢。挑戰自己,並學習一些寫出更好、更快、更準確的C代碼的強大技巧和細節。
大多數C程式設計書籍按照順序呈現信息,教你正確的編碼方式,很少描述可能出錯的情況。在這本書中,目標是找出出了什麼問題,或者可能出了什麼問題。通過簡短、直接的程序和練習,探索有趣且不尋常的程式設計概念和方法。磨練你的C程式設計技能,擴展你的知識。
通過解決這本書中的謎題,你將填補你知識的空白,並與指針和遞迴等高級概念一起工作。所有謎題主題都是精心挑選的,以引發你的思考,解釋每個謎題背後的技術細節。看一個代碼示例,試著猜測它的輸出結果。自己編寫代碼並查看結果。是否符合你的預期?然後閱讀作者輕鬆詼諧的解釋,了解語言為什麼會做出這樣的行為,以及你如何利用它。你將對語言的運作方式有更好的理解,並學會如何進行高效和有效的程式設計。
所需材料:
你需要了解C語言的基礎編碼知識,並擁有一個編譯和執行C代碼的環境。任何具有C編譯器的Windows、MacOS或Linux系統都可以完成這項工作。使用終端窗口進行傳統的C程式設計,或者獲取一個集成開發環境(IDE),如Visual Studio Code,其中包含您所需的所有軟件工具:編輯器、編譯器和輸出工具。