delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/30/17:04:40

Message-ID: <20030130220413.68217.qmail@web13006.mail.yahoo.com>
Date: Thu, 30 Jan 2003 14:04:13 -0800 (PST)
From: Thomas Tutone <thomas8675309 AT yahoo DOT com>
Subject: Re: String class for djgpp
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

"gilbert" <theresaboxonmyhead AT yahoo DOT com> wrote:
> I am looking for a string class which will work 
> with djgpp. 
[snip]
> Is there a string class that will work with djgpp?

I don't mean to be a smart-alec, but what's wrong with
std::string?

#include <iostream>
#include <string>
int main()
{
    using namespace std;
    cout << "What is your name?";
    string name;
    cin >> name;
    cout << "Hello, " << name << '.' << endl;
}

Or am I missing something?

Best regards,

Tom


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019