Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 6
    Or preferably use a std::vector<uint16_t>. Commented Apr 28, 2012 at 19:05
  • 1
    @SteveFallows: as a novice maybe getting a feel for how new and delete work could be good before jumping in the template libraries - not sure about it though, I started myself with C/C++ way before the template libraries were available. Commented Apr 28, 2012 at 19:17
  • 2
    @MiMo: I guess it is important to know how it works under the hood, but I would recommend starting with safe constructs and moving to the deeps afterwards. Even if it feels magic to begin with, using RAII is a good habit to take, so let's drill it into beginners early. Commented Apr 28, 2012 at 19:22
  • @MiMo: I started with assembly back in the dark ages, so I totally agree with understanding what's under the hood. Which is better to learn first, I'm not totally sure either - and may vary by individual. Commented Apr 28, 2012 at 20:32