TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

245 点作者 jrepinc大约 1 年前

22 条评论

xdavidliu大约 1 年前
I find it really problematic that the &quot;classic first program&quot; in this book includes &quot;import std;&quot; as the very first line, and as far as I know not a single compiler with the possible exception of MSVC supports that out of the box.<p>Writing this on a debian machine, and trying &quot;g++ --std=c++23 -fmodules-ts&quot; does not work, and from <a href="https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;23" rel="nofollow">https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;23</a> looks like the &quot;paper&quot; for this is P2465R3, for which clang++ 17 has &quot;partial support&quot;. I apt installed clang++17, and it still didn&#x27;t work, complaining &quot;module &#x27;std&#x27; not found&quot;<p>I understand that &quot;import std;&quot; is a very new feature and not &quot;finalized&quot; or whatever, but this book is supposed to be for beginners to C++; I wonder how the average beginner would react to that?<p>(I found the same thing a year or two ago when reading &quot;Tour of C++&quot;)
评论 #40138803 未加载
评论 #40095038 未加载
评论 #40092777 未加载
评论 #40093331 未加载
tejohnso大约 1 年前
Oh, he switched to QT for the GUI chapter. That&#x27;s a significant change from FLTK. Should be well received as QT is popular in industry. Not sure how the learning curve will be affected.
评论 #40089207 未加载
评论 #40088451 未加载
评论 #40088359 未加载
评论 #40089327 未加载
chuckadams大约 1 年前
Know what I like about Stroustrup&#x27;s code? &quot;using namespace std;&quot;. The typical convention of sticking std:: in front of std::every std::last std::bloody std::thing drives me std::insane.
评论 #40089396 未加载
评论 #40089679 未加载
评论 #40090119 未加载
评论 #40101500 未加载
评论 #40088861 未加载
ben7799大约 1 年前
Haven&#x27;t used C++ in 10+ years but I remember studying an earlier version of this book in stupid depth. And this was at the end of 4 years of using 99% C++ in college.<p>It&#x27;s such a good book. If you really take the time to understand the book C++ it seems kind of sad the world was so afraid of it.<p>But of course after all this I of course met an army of people who had never read a book like this at all and wrote horrifying C++ code.
jdlyga大约 1 年前
I miss my days working with C++. It&#x27;s moved further down the development stack than where it used to be. We used to handle UI, API parsing, and pretty much everything using C++.
评论 #40088098 未加载
评论 #40087784 未加载
评论 #40087966 未加载
评论 #40088445 未加载
评论 #40087919 未加载
评论 #40089445 未加载
评论 #40087750 未加载
deeznuttynutz大约 1 年前
Over the past year, I&#x27;ve completed most of the second edition. It truly is an amazing book that has helped me overcome many mental barriers I&#x27;ve faced with programming for years. The main reason for the reduced size of this edition is the removal of &#x27;Part IV: Broadening the View.&#x27; This section, which covers additional topics such as text manipulation, numerical computing, and embedded systems, is now available online. The chapters have not been updated from the second edition, as the topics are still relevant and utilize C++11&#x2F;14.
dzogchen大约 1 年前
Sharing the C++ Annotations here, which is a continiously updated book on modern C++. <a href="http:&#x2F;&#x2F;www.icce.rug.nl&#x2F;documents&#x2F;cplusplus&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.icce.rug.nl&#x2F;documents&#x2F;cplusplus&#x2F;</a>
评论 #40087611 未加载
评论 #40088703 未加载
评论 #40087279 未加载
rubymancer大约 1 年前
I expected it to be even more of a tome, but surprisingly it&#x27;s been cut in half!<p>2nd edition:<p>Paperback ‏ : ‎ 1312 pages<p>Item Weight ‏ : ‎ 4.81 pounds<p>3rd edition:<p>Paperback ‏ : ‎ 656 pages<p>Item Weight ‏ : ‎ 2.71 pounds
评论 #40087409 未加载
评论 #40087570 未加载
评论 #40089063 未加载
bluedino大约 1 年前
Why does Bjarne only sometimes use a space after <i>#include</i>?<p><pre><code> #include&lt;stdint.h&gt; #include&lt;list&gt; #include &lt;map&gt; #include&lt;unordered_map&gt; #include &lt;set&gt; #include&lt;memory&gt; #include &lt;algorithm&gt; </code></pre> <a href="https:&#x2F;&#x2F;www.stroustrup.com&#x2F;PPPheaders.h" rel="nofollow">https:&#x2F;&#x2F;www.stroustrup.com&#x2F;PPPheaders.h</a>
评论 #40091381 未加载
评论 #40093134 未加载
CSMastermind大约 1 年前
A new version is extremely exciting.<p>Even if you&#x27;re an experienced programmer or have no interest in C++ you should still read this book.<p>It&#x27;s one of the best examples of technical writing and teaching computer programming that I&#x27;m aware of.
tiptup300大约 1 年前
I&#x27;ve always wanted to learn C++. I have a great handle on C#, making large applications and architectures as well as legacy refactoring in C#, and I would love to learn C++.<p>I recently started at a company with a bit of a hairy c++ application that I would love to refactor or understand more thoroughly. Is this book a good place.<p>Note that I have read a very basic book on C++ much more learning programming book, but got me introduced to the memory management concepts.<p>As well I&#x27;ve been getting through Effective C++: 55 ways..., but this seems more like a tips and tricks and I don&#x27;t think I&#x27;m getting much out of it.
评论 #40087842 未加载
评论 #40087871 未加载
评论 #40088673 未加载
评论 #40088495 未加载
slekker大约 1 年前
Sorry if it is a bit off-topic.<p>If you just started learning C++, why did you choose it instead of another language? (Rust, C#, Go, etc)<p>I know a bit of C but feel that the sheer &quot;thickness&quot; of C++ is too daunting and scary to even start.
评论 #40088184 未加载
评论 #40090078 未加载
评论 #40088707 未加载
FrustratedMonky大约 1 年前
I love this book. I wish other languages had something similarly held in high regard to provide some touchstone.<p>Is there something like this for Rust?
评论 #40087780 未加载
aquir大约 1 年前
Great but I am unable to find an IDE or compiler that supports C++ 20 and every one of them complains about import std;<p>Any recommendations?
评论 #40092254 未加载
skilled大约 1 年前
Excellent! I have recently started doing the learncpp.com tutorial and I think this book might have come at the right time.
评论 #40087736 未加载
dmarchand90大约 1 年前
Can anyone recommend a good book for numerical c++ in 2024?
评论 #40090828 未加载
aero-glide2大约 1 年前
This is the book i used to learn programming 10 years ago! After that I never really learnt anything new.. been using the same concepts.
评论 #40088607 未加载
OnionBlender大约 1 年前
My problem with newer C++ books is that all of my projects are stuck using C++17.
评论 #40089118 未加载
zerr大约 1 年前
Are there any university lectures&#x2F;videos based on this book?
dboreham大约 1 年前
First edition was the right thickness imho.
uwagar大约 1 年前
why not P3 instead of PPP3?
mindcrime大约 1 年前
Huh. The ISBN shown at the top of the page (currently &quot;9780136816485&quot;) appears to be incorrect. That seems to be the ISBN for &quot;A Tour of C++&quot; from 2022. The ISBN for <i>this</i> book is, according to the Amazon product page[1], &quot;9780138308681&quot;.<p>[1]:<a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Principles-Practice-Using-C&#x2F;dp&#x2F;0138308683" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Principles-Practice-Using...</a><p>Edit: emailed Mr. Stroustrup and he just replied to say that the bad ISBN has been corrected.
评论 #40087787 未加载
评论 #40090045 未加载
评论 #40088110 未加载
评论 #40092146 未加载