Mail Archives: djgpp/1999/10/04/08:48:53
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 -