Jump to content
  • Advertisement
Sign in to follow this  
jolyqr

STL

This topic is 4556 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

Advertisement
by the way, what is the difference between :


#include <stdio.h>

and

#include <stdio>
using namespace std;

Share this post


Link to post
Share on other sites
If I remember correctly, there is a small difference - the <xxx.h>
variation brings stuff into the standard namespace (or sth like that)
They are there for backwards compatibility

Just use the one without the <xxx.h>

Share this post


Link to post
Share on other sites
Quote:
Original post by jolyqr
by the way, what is the difference between :


#include <stdio.h>

and

#include <stdio>
using namespace std;


I hope you mean <cstdio>

The first one is antiquated/deprecated in c++, and is included only for backward compatability. See here.

Share this post


Link to post
Share on other sites
A random STL tutorial

Just a google for 'STL tutorial' will show up many hits. Just be careful, if you stumble across a website which uses the STL headers ending in .h (#include <iostream.h> as opposed to #include <iostream>), scrap it, it is too old/non-standard. Standard C++ has the newer headers without .h suffix.

Edit: Damn I'm slow.

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!