RE: c++ docs
On 31-May-99 Brad wrote: Where are the docs for the c++ libraries? More specifically, i have a copy of C++ How To Program second edition here. It claims that #include sstream will allow strings to be manipulated as streams. sstream: No such file or directory g++ tells me. Ok then, i'll just check the docs i think to myself. Tried the manpages. Tried info. Tried looking in /usr/doc. i couldn't even find anything about the c++ string class (which i know i have), much less using them as streams! Hmmm... did i miss a -doc somewhere?. Fired up dselect, and couldn't find any c++ docs at all, installed or uninstalled... So, does anyone know where the docs are? Or at least how to use something like what the book is talking about? g++ uses strstream. I am unsure if that is the proper ANSI name or not.
Re: c++ docs
The standard string streams stuff isn't supported yet in egcs, I don't think. To find out if something is supported, see if it's there. For docs, read Stroustrup. :-) There's also: http://www.sgi.com/Technology/STL/ which is helpful. Havoc
Re: c++ docs
On Mon, 31 May 1999, Brad wrote: Where are the docs for the c++ libraries? More specifically, i have a copy of C++ How To Program second edition here. It claims that #include sstream will allow strings to be manipulated as streams. sstream: No such file or directory g++ tells me. Ok then, i'll just check the docs i think to myself. Tried the manpages. Tried info. Tried looking in /usr/doc. i couldn't even find anything about the c++ string class (which i know i have), much less using them as streams! Hmmm... did i miss a -doc somewhere?. Fired up dselect, and couldn't find any c++ docs at all, installed or uninstalled... So, does anyone know where the docs are? Or at least how to use something like what the book is talking about? Unfortunately, there is very little distributed with egcs nor in the way of actual documentation for either the compiler or the libraries. For STL there is a considerable array of texts. Depending on how good you are with C++, you could use Glass and Schuchert, The STL PRIMER published by Prentice Hall. This was writted by them for a two or three days of 8 hour classes. If you already have the STL details in hand, this is very a good encapsulation of the STL. PJ Plauger has several books on STL and on the libraries. He directed the C++ library part of the standards committee. Most of his books are published by Prentice Hall. Go to the PH web page and search for Plauger. A book I like, but is old, that I still use extensively is Teale, C++ IOStreams Library,m the trout book from Addison Wesley. That book is dated, but if you try all the stuff he suggests, you will find it a gold mine. If you are a C++ beginner, you should use book like Savitch, Problem Solving in C++, Addison Wesley, which I had the pleasure of doing the revision under Prof Savitch's careful guidance. It deals with the language and some of the libraries. Next a beginner in the STL might go to Budd, Data Structrues in C++, aslos Addison Wesley. IF you are reasonably gooa at C++ programming, and intereseted in the Intel architecture in a micro soft environmnet, use Nelson's C++ Programmer's Guide form IDG books. If you are an advanced C++ programmer, then for STL you could use STL Tutorial and Reference Guide, Musser and Saini, Addison Wesley. As has been mentioned, Stroustrup, The C++ Programming Language 3rd, and LIppman and Lajoie, C++ Primer, contain a vast amount of information. These are Addison Wesley books. Last but not least is the array of places on the WWW where you can find vast arrays of documenation and tutorials. --David David Teague, [EMAIL PROTECTED] Debian GNU/Linux Because software support is free, timely, useful, technically accurate, and friendly. Hope this qualifies.
Re: c++ docs
You are probably looking for 'strstream' which you can include headers for with '#include strstream'. The name of this class has been strstream for a couple of years, but all of the STL stuff is relatively young, so if your book is more than (about) two years old, many thngs may end up slightly inaccurate. There is a package named 'stl-manual' that has some docs, but again the stl is too yung for much standarization between different libraries. So small things may be different. At least, with newer versions of eg++, you can use default template parameters; the former HP library did not uise them since g++ didn;t support them Carl
Re: c++ docs
On Mon, 31 May 1999, Brad wrote: Where are the docs for the c++ libraries? More specifically, i have a copy of C++ How To Program second edition here. It claims that #include sstream will allow strings to be manipulated as streams. sstream: No such file or directory g++ tells me. The next major release of g++ will probably have it. g++ currently has the older strstream, which descibes stream classes that operate on char*, not string. They can probably be used for mostly the same thing. The iostream library (including strstreams) is documented in the iostream info file, that comes with libstdc++2.9-dev. Just type `info iostream'. In the future strstream (which is not in the ANSI standard) will be replaced by sstream (which is in the ANSI standard), though I guess strstream will stay around for some time. Ok then, i'll just check the docs i think to myself. Tried the manpages. Tried info. Tried looking in /usr/doc. i couldn't even find anything about the c++ string class (which i know i have), much less using them as As someone else already pointed out, there is the stl-manual package, which contains the information from Silicon Graphics about the STL (g++ currently uses the SGI implementation). streams! Hmmm... did i miss a -doc somewhere?. Fired up dselect, and couldn't find any c++ docs at all, installed or uninstalled... So, does anyone know where the docs are? Or at least how to use something like what the book is talking about? Unfortunately, there is very little distributed with egcs nor in the way of actual documentation for either the compiler or the libraries. In the egcs-docs package there is extensive information about the compiler in info format. The description of the C++ libraries could be better, but the iostream library is descibed to some degree in the iostream info file. The C library is not part of egcs, but it is well documented in info format, and available in the glibcdoc package. It is actually readable (not just as a reference) and I recommend it to anyone who is programming in unix in C or C++. I expect information about the stl to pop up when g++ starts using the stl implementation from the egcs team. For now g++ uses the SGI stl and you can use its documentation. [... skip interesting references ...] HTH, Eric Meijer -- E.L. Meijer ([EMAIL PROTECTED]) Eindhoven Univ. of Technology Lab. for Catalysis and Inorg. Chem. (SKA)
c++ docs
Where are the docs for the c++ libraries? More specifically, i have a copy of C++ How To Program second edition here. It claims that #include sstream will allow strings to be manipulated as streams. sstream: No such file or directory g++ tells me. Ok then, i'll just check the docs i think to myself. Tried the manpages. Tried info. Tried looking in /usr/doc. i couldn't even find anything about the c++ string class (which i know i have), much less using them as streams! Hmmm... did i miss a -doc somewhere?. Fired up dselect, and couldn't find any c++ docs at all, installed or uninstalled... So, does anyone know where the docs are? Or at least how to use something like what the book is talking about?