Keywords: bold. Library types: normal.
And std::string is from <string> , not <string.h> .
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Try
#include <string>
string.h is not meant for 'C++strings', it is for char* or 'C-strings'
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944