from Hacker News

C++ Language Quick Guide

by TheVip on 5/3/17, 5:12 PM with 26 comments

  • by copperx on 5/3/17, 6:09 PM

    I just want to point out that Stroustrup's A Tour Of C++ is an excellent quick guide and it does include C++11 features.
  • by bstamour on 5/3/17, 5:32 PM

    Please update the section on storage classes. Auto is no longer a storage class, but a keyword for automatic type deduction. Also, register has recently been deprecated as well, if I remember correctly.
  • by Cieplak on 5/3/17, 7:26 PM

  • by GhostVII on 5/6/17, 4:44 AM

    Does this guide have anything about references? Didn't find anything about that, but maybe I missed it, I think its a pretty important topic to cover. Also didn't see anything about the different types of constructors.
  • by alexeiz on 5/4/17, 3:08 PM

    This guide is so primitive that it cannot be called useful. It can possibly be harmful, though, to those who don't know the language well and use this guide as a sole source of information.
  • by minipci1321 on 5/3/17, 7:21 PM

    > C++ is a superset of C, and that virtually any legal C program is a legal C++ program.

    This is not true. One example, void* pointers are not automatically converted to "narrower" types in C++ as they are in C.

  • by blt on 5/3/17, 7:32 PM

    This looks more like an exam review study guide than an attempt to teach the language.
  • by PopsiclePete on 5/3/17, 10:57 PM

    This is kind of ... crappy. Sorry. It might have been semi-useful in 2004 or so, but now...woefully outdated and inadequate to get anyone up-to-speed. I'd say it's actually harmful.
  • by dotdi on 5/3/17, 6:55 PM

    Call me nitpicky, but you lost me at `Box Box1;`

    Instance names should be lowercase, for God's sake.