Im not too familiar with this topic, but I think the header files without
the .h are C++ standard or C-style or something like that (new headers) and
the ones with the .h are the old ones. You can use the new ones but if I
remember correctly (from this book I read) you are only meant to use them if
you are familiar with namespaces and use namespaces to access functions from
the header files.
Ramana
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Brandon
Sent: Tuesday, January 16, 2001 10:57 AM
To: dev...@li...
Subject: [Dev-C++] Problem with header files
Hey, I started messing with the syntax of header files and I found I can
use 'string' instead of a character array when I use "#include <string>"
instead of "#include <string.h>". Why is does this happen? What are the
advantages, besides 'string', of using any header file without the .h
extension?
Thanks.
Signed,
Brandon
|