Jump to content
  • Advertisement
Sign in to follow this  
meteorstorm42

What's the best C++ reference?

This topic is 3367 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I'm trying to learn C++, and I'm really missing the Java API right now... Is there anything similar available for C++ ? (I'm trying to look into threading right now, and can't even find out how to use a sleep() command, or what header is needed.) Any help would be appreciated :)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by meteorstorm42

But what about threading stuff?


C++ doesn't have threads. You need to use OS API for that.

The closest to standard interface is the boost::thread library, which is basis of what concurrency support will look like in next C++ standard. pthreads is another library (POSIX), but more C-centric.

If you miss Java, look into Qt. Containers look like those of .Net or Java, it has UI, and just about everything else.

Quote:
That seems pretty good for the STL.


This is also all there is. The entire C++ standard library. Everything else needs to be provided by third-party libraries, wrapping OS/platform-specific functionality.

Share this post


Link to post
Share on other sites
C++ doesn't have any.

You'd want to use the reference for the third-party library you're using for threading (for example, MSDN if you're directly using the threads provided by the Win32 API, Boost's documentation if you're using their threading abstraction, et cetera).

Share this post


Link to post
Share on other sites

Any idea how more recent games handle multithreading?
Is it through the OS? Or do they go through an API?
(I know SDL offers threading for example.)

Share this post


Link to post
Share on other sites
Different games will use different libraries for different reasons. What you should be doing is stating your requirements and asking what library or libraries meet those requirements if any. I'll get you started with some questions: What OS(es) are you targeting? What compiler(s) will you be using? What existing library or libraries are you using?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!