Re: [Dev-C++] C++ strings in header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-09-07 04:05:21
|
Hi Dane, Could be that you haven't included "using namespace std;" above your include. Dane Ensign <dg...@wo...> wrote: Hi all, I want to place 2 string members in my class .h file. Currently I have put '#include ' at the top and as a private member I put: string firstName; When I try to compile I get this error: 'string' does not name a type. Please can someone show me how to do this properly? Best regards, Dane da...@de... Alfred P. Reaud |