Sign in to follow this  
kaktusas2598

Does I need to know all STL concepts?

Recommended Posts

It's all about game programming. I already know a little about <vector>, iterator and algorithms. I read this in "Beginning C++ Game Programming". I also want to know what things i need to know to create a simple console games (Arkanoid, Snake or Pong).

Share this post


Link to post
Share on other sites
Strictly speaking, you don't "need" to know any STL to create those games, but the more you know, the easier it can be. It has a lot of functionality that can save you a lot of work.

At the bottom of this post there's a free book called Thinking in C++. Its second volume has pretty extensive coverage of the STL.

Share this post


Link to post
Share on other sites
You don't. There is a bare minimum you need to effectively interact with the standard library containers and algorithms that will make a large difference to the quality of your game and how fast you develop it.

You will keep learning for some time to come, and you can't really master these things until you have had a change to use it. But it pays to be aware of them so you can learn about them when needed. For example, so far I haven't had cause to use the std::multi_* containers, but I know they exist and when I do come across a need for them, I won't end up reimplementing them myself.

Share this post


Link to post
Share on other sites
You should at least skim over all available concepts because you will find many useful tools available to solving your problems. The last thing you want to do is reinvent the wheel.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this