RE: [Dev-C++] Problem with header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2001-01-16 11:23:03
|
#include <string> and string types belong to C++. #include <string.h>
belongs to C and of course to C++ too. In C++ you can use also #include
<cstring> instead of string.h but you must make use of namespaces.
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Brandon
Sent: Tuesday, January 16, 2001 1: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
|