STL
by the way, what is the difference between :
#include <stdio.h>
and
#include <stdio>
using namespace std;
#include <stdio.h>
and
#include <stdio>
using namespace std;
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>
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>
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement