www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/09/17:15:11

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using strings in DJGPP
Date: Fri, 08 Feb 2002 22:29:21 +0000
Lines: 17
Message-ID: <3C645141.1F7A544B@phekda.freeserve.co.uk>
References: <200202071335 DOT HAA24357 AT mailhub-1 DOT iastate DOT edu> <00d001c1b0b9$1d416d70$6e0510ac AT et30>
NNTP-Posting-Host: modem-182.xenon.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg3.svr.pol.co.uk 1013208563 4510 62.136.45.182 (8 Feb 2002 22:49:23 GMT)
NNTP-Posting-Date: 8 Feb 2002 22:49:23 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

jade wrote:
>     I'm not very familiar with djgpp yet but in other  C compilers I'm
> almast sure that there's no type called <string>. Why u just don't use the
> usual char *.
> Remember that old C is always better.

This thread is about the C++ class 'string'. Using 'string' is much nicer than
handling C-style strings. For instance, concatentation just works - you can
add strings together without worrying about memory allocation at all. There
aren't many reasons to carry on using C-style strings in C++ programs.

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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