From: Charles Krug Newsgroups: comp.os.msdos.djgpp Subject: Re: "string" in GnuC++ ??? Date: Mon, 29 Dec 1997 09:03:45 -0500 Lines: 30 Message-ID: <34A7ADC0.640B1A5C@pentek.com> References: NNTP-Posting-Host: mail.pentek.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Stritt wrote: > Hello! > > as the definition C++ says, i can use the type "string", after binding the includefile > "". > You also need (AFAIK, always) to include string. You should be able to use strings as in your example by simply doing this: #include #include int main() { string test("Hello World!\n"0; cout << test; } -- Charles Krug, Jr. Application Engineer Pentek Corp 1 Park Way Upper Saddle River, NJ 07458