STL

Started by
12 comments, last by Kylotan 18 years ago
Do you know good links to learn how to use the STL ? cheers !!
Advertisement
http://www.google.com/search?q=stl+tutorial
Pixelate did some good beginners articles.
[size="1"]
by the way, what is the difference between :


#include <stdio.h>

and

#include <stdio>
using namespace std;
There is no difference. But second one is prefered if you are programming C++ code.
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>
visit my website at www.kalmiya.com
okay
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.
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.
Moving to For Beginners.

This topic is closed to new replies.

Advertisement