Re: [Dev-C++] C++ strings in header files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Masthan R. <mas...@gm...> - 2005-09-08 12:26:10
|
Hi Dane, Probably you might have not included=20 using namespace std;=20 in starting of your project after including the header files. I tried and it worked for me. Regards Masthan On 9/6/05, Dane Ensign <dg...@wo...> wrote:=20 >=20 > Hi all, >=20 > I want to place 2 string members in my class .h file. Currently I > have put '#include <string>' at the top and as a private member > I put: >=20 > string firstName; >=20 > When I try to compile I get this error: 'string' does not name a type. >=20 > Please can someone show me how to do this properly? >=20 > Best regards, >=20 > Dane > da...@de... >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 --=20 Regards Masthan |