delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/04/08:48:53

Newsgroups: comp.os.msdos.djgpp
From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann)
Subject: Re: Commands?
References: <7t84l8$7bp$1 AT news4 DOT svr DOT pol DOT co DOT uk>
X-Newsreader: News Xpress 2.01
Date: Mon, 04 Oct 1999 09:23:38 GMT
NNTP-Posting-Host: dhcp33-114.uni-bielefeld.de
Message-ID: <37f87228.0@news.uni-bielefeld.de>
X-Trace: 4 Oct 1999 11:23:52 +0200, dhcp33-114.uni-bielefeld.de
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <7t84l8$7bp$1 AT news4 DOT svr DOT pol DOT co DOT uk>, "Valmont" <news AT valmont1 DOT freeserve DOT co DOT uk> wrote:
>I'm a complete novice to programming in C++, and am having a bit of a
>headache with the headers.
>
>I'm learning from a book by Horstmann ("Computing Concepts with C++
>Essentials 2nd edition") which uses all ANSI standard commands, but the
>newest version of DJGPP that I am using doesn't recognise half of them - in
>particular those relating to strings.
>
>How can I get a list of the commands that each library contains - ie what's
>in <string>, <iostream>, <cmath>, etc?  I don't seem to be getting any help
>from the programme or its FAQs about this.
>
>All I want to do is assign a "string" variable and slice it up into little
>sections (like below), but it just won't let me!!
>
>
>#include <iostream.h>
>#include <string.h>

[snipped rest of code]

There you go. Why did you include <string.h> when you want to use <string>. 
That is a big deal difference. <string.h> is the header for C-style strings 
whereas <string> is just the thing you are trying to get.
If you want to know about all the functions in there, you will have to take a 
look at it. But I guess your book will do just fine.

--

Manni

- Raw text -


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