Monday, May 24, 2010

In C++ Language, How to use cstring header file?

The cstring header file defines quite a few *low level* character string management functions for C-style strings (read: null terminated array of char's). This is most likely not what you want to deal with in C++.





For basic string management, under C++, I would recommend you use the STL string object for string management instead of string.h.





The references at the end have examples.





But, if you insist on using cstring.h just #include%26lt;string.h%26gt; in your code and you are ready to use any of the functions described here: http://www.cplusplus.com/reference/clibr...

In C++ Language, How to use cstring header file?
#include %26lt;afx.h%26gt;


No comments:

Post a Comment