string and string.h

Matthew Flaschen matthew.flaschen at gatech.edu
Wed Dec 3 06:36:27 UTC 2008


Chaman Singh Verma wrote:
> Hello,
> 
> Prior to upgradation to 8.10,  I used to declare #include <string> in my C++
> codes and I never
> used to include string.h. But it seems that now I have to use both of them
> if my program
> use both sting classes and other posix functions such as "strlen", strcpy
> etc.

You need to include <cstring>, I believe.

Matt Flaschen




More information about the ubuntu-users mailing list