473,606 Members | 2,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Navigating C++

As a Perl programmer for many years, this week I decided to stick my
toe back into C for a specific project.

During which I was tinkering with C++, which I have no production
experience in.

I am embarrased to say I am having soem difficulty navigating C++ in
Linux.

I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.

I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.

So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.

Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things.

How and where do I browse the available library of contributed C++
libs?

For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #1
15 1659
brundlefly76 wrote:
So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
If you know just enough C++ to select distinct keywords, you can use Google
for all the intermediate and advanced stuff.

However, the 'man' for C++ is at your local bookstore.

Perl hides the lowest-level details, such as your memory system. C++
requires you to remain aware what points to what. You cannot write a C++
program based on 'apropos' and 'man'. Crack a book.
Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things.

How and where do I browse the available library of contributed C++
libs?
Nobody can contribute C++ to a single repository, because C++ has no common
package management system. CPAN depends on absolutely everything using
Makefile.PL properly. C++ has no equivalent, because C++ programs have
greater freedom to abuse your CPU.
For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?


www.google.com and http://groups.google.com

thence www.boost.org , http://sf.net , and thousands of different code
sample and repository sites.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 23 '05 #2
"br**********@h otmail.com" <br**********@h otmail.com> writes:
I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results. 'man for' isn't useful either.
So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them. I think html pages are more useful. Some may well be on your system.

Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things. How and where do I browse the available library of contributed C++
libs?

http://www.boost.org/ is a good place to start. See also the FAQ
http://www.parashift.com/c++-faq-lit...libraries.html

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #3
Hi,

br**********@ho tmail.com wrote:
I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.

I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.

So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
Yes, the C++ documentation does not usually follow what is considered to
be a "Unix tradition". I've never seen man pages for C++ standard library.
Taking into account that "man printf" works fine (OK, "man 3 printf"), I
agree that the lack of "man cout" can be irritating.

Try these pages:

http://www.roguewave.com/support/doc...Pro/stdlibref/
http://www.cppreference.com/
http://www.sgi.com/tech/stl/
How and where do I browse the available library of contributed C++
libs?


I've found this index to be quite comprehensive:

http://www.trumphurst.com/cpplibs/cpplibs.phtml
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]

Jul 23 '05 #4
In comp.os.linux.m isc br**********@ho tmail.com <br**********@h otmail.com> wrote:
I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.
There is no reason it should - that's part of C++.
I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.
Good.
So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
There is a man page for the compiler. If you want to know how to
program in C++, you have to buy a book (as for any language) or some
other dcumentation.
Second, I realize that there are C++ extensions and OO libraries and so
I don't realise. Libraries will have their man pages.
on. In Perl, I would just visit CPAN for these things.
"just"?!
How and where do I browse the available library of contributed C++
libs?
Libraries, once compiled, are not (particularly) specific to a
programming language. The linker links with their exported symbols, not
to the language they are written in. All you need to know is the
calling convention (;)>. And maybe sme declarations.
For example, I want to parse posix command line options, which in C I
would do with getopt_long.
Then you can do it just fine with getopt_long in C++.
I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
I presume so too. Google.
to *find* these types of libraries?


"the universe".

Peter

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #5
mjt
("br**********@ hotmail.com" <br**********@h otmail.com>) scribbled:
So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
.... info gcc, info g++
How and where do I browse the available library of contributed C++
libs? For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?


.... probably best to visit the bookstore for
a reference on this. as you know, too, you
can use C functions using c++

--
<< http://michaeljtobler.homelinux.com (L7 - Stick to the Plan) >>
All who joy would win Must share it --
Happiness was born a twin. - Lord Byron

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]

Jul 23 '05 #6
br**********@ho tmail.com wrote:
As a Perl programmer for many years, this week I decided to stick my
toe back into C for a specific project.

During which I was tinkering with C++, which I have no production
experience in.

I am embarrased to say I am having soem difficulty navigating C++ in
Linux.

I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.
Try 'man Namespace_std' (I happen to know this is the correct manual
page, but I don't know whether you will have it).
I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.

So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
The C++ library for g++ has inline documentation in the code which can
be extracted and processed by doxygen into various forms, including
manual pages. Not all Linux distributors necessarily build and
distribute these.

There is a separate documentation page for each function, function
template, class, class template and namespace. Static objects, type
aliases and enumerations are documented on the manual pages of their
containing scopes. Note that the manual page names include
namespace qualification ('std::' prefix for almost everything in
the standard libary).
Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things.

How and where do I browse the available library of contributed C++
libs?
There is no single site acknowledged as *the* place to find open
source C++ libraries. The Open Directory may be of help:
<http://www.dmoz.org/Computers/Programming/Languages/C++/Class_Libraries/>.
I would tend to look first in Boost, as the Boost libraries are
generally acknowledged to be of a high standard and they work well
with the standard library and are portable.
For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?


Boost.Program_o ptions does this (and more if you want it).

--
Ben Hutchings
Having problems with C++ templates? Your questions may be answered by
<http://womble.decadent place.org.uk/c++/template-faq.html>.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]

Jul 23 '05 #7
br**********@ho tmail.com wrote:
So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
C++ has a fairly different culture than Perl. Part of this is that
there is not just one implementation of C++ which results in some
difference. You already stubmbled of the fact that not all C++
implementations come with man pages. I haven't checked recently
but I seem to remember that I have seen info(1) pages shipping for
parts of the C++ library with gcc. Other compilers, e.g. SUN's
actually have man pages. The primary source of information in C++
are books.
Second, I realize that there are C++ extensions and OO libraries and so on. In Perl, I would just visit CPAN for these things.


Yes, and having just one implementation of Perl makes it viable to
more less automatically access them. For C++ you would probably
visit Boost (<http://www.boost.org/>) for some form of open and
free library but it does not include all C++ libraries. Due to a
rather wide range of different programming styles, it is unclear
whether just one library archive is really viable.
--
<mailto:di***** ******@yahoo.co m> <http://www.dietmar-kuehl.de/>
<http://www.contendix.c om> - Software Development & Consulting
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #8
"br**********@h otmail.com" <br**********@h otmail.com> writes:
As a Perl programmer for many years, this week I decided to stick my
toe back into C for a specific project.

During which I was tinkering with C++, which I have no production
experience in.

I am embarrased to say I am having soem difficulty navigating C++ in
Linux.

I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.
Just get yourself a some good books - say, Langer & Kreft for
iostreams, and Austern for the STL, and a copy of the ISO C++ 2003
standard.

The gnu libstdc++ docs are here:
http://gcc.gnu.org/onlinedocs/libstd...mentation.html . THe
most useful part of that is probably:
http://gcc.gnu.org/onlinedocs/libstd...4/modules.html

There are man pages for all this in a tarball at
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/ .
Just untar it whereever you want, add that dir to your man path,
and presto, man pages. Start with 'man C++Intro' . But there's no
man page for cout. IIRC, the philosophy behind the libstdc++ docs
is that the ISO C++ standard should be the documentation, and the
libstdc++ docs should document only what the standard does
not.

And sgi's docs (which g++ users have relied on forever) are here:
http://www.sgi.com/tech/stl/

But I have a hard time seeing how someone unfamiliar with what's in
good C++ texts could make much use of that documentation. You
aren't likely to get anywhere in C++ unless you spend a few
hundred dollars on books, and (much more importantly) a few
hundred hours studying those books, and applying the lessons in
them.

I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.

So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.
See above. I don't know if any linux distros provide them
pre-packaged.
Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things.

How and where do I browse the available library of contributed C++
libs?
boost.org is the closest thing c++ has to CPAN. But in all honesty, I
don't think any other language has anything quite as nice as
CPAN. (Nor does any other langauge have man pages as nice as
Perl's or C's.)

For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?


boost.org - specifically, http://boost.org/doc/html/program_options.html
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #9
br**********@ho tmail.com wrote:
As a Perl programmer for many years, this week I decided to stick my
toe back into C for a specific project.

During which I was tinkering with C++, which I have no production
experience in.

I am embarrased to say I am having soem difficulty navigating C++ in
Linux.

I am pretty certain that I installed all the available documentation
with my Suse 9.2 install, yet 'man cout' for example, yields no
results.

I have no problems finding my perl and c man documentation, and the C++
compiler is installed and works fine.

So, my first problem is that I dont know where the man pages live for
C++, or where to get them if Im missing them.

Second, I realize that there are C++ extensions and OO libraries and so
on. In Perl, I would just visit CPAN for these things.

How and where do I browse the available library of contributed C++
libs?

For example, I want to parse posix command line options, which in C I
would do with getopt_long. I assume, however, that someone has already
written a nice OO C++ interface to command line options - where do I go
to *find* these types of libraries?

You may check this page:

http://www23.brinkster.com/noicys/learningcpp.htm

--
Ioannis Vranos

http://www23.brinkster.com/noicys

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
4194
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset Set rs = Me.RecordsetClone rs.Find "=" & lngContractID If Not rs.EOF Then Me.Bookmark = rs.Bookmark I must site the Heisenberb Uncertainty Principal here, as it
2
1761
by: Daveyman | last post by:
Hi, I'm having a problem navigating to/from a subweb using forms authentication. The setup in IIS is as follows: TestSite +----SecureDir +----ReportsSubWeb In VS.Net 2003 this has been set up as a single solution containing two
5
7412
by: Roy Lawson | last post by:
I am having no problems connecting to a DB, creating a DataAdapter, and creating a dataset...and connecting to the data. Using the builtin data objects to do all this. My only problem now is navigating through the data. I can get the data into a datagrid without any problems, but I want the data to show up in textboxes and use some sort of move next, move previous, move last, etc (like in VB6) command to navigate the data (using...
1
1523
by: ABC | last post by:
Can I find out when the user is navigating to another page? or What events will be call if the page is change to another page? I want to call clear session variables when user is navigating to another page.
7
3812
by: hiriumi | last post by:
Hello folks, I have a web application that has basic authentication turned on (IIS). What I would like to accomplish is detect whether user is navigating away from the site or simply going to the different page using JavaScript. I am aware that it is easy to detect where you came from (referrer), but I haven't been able to find a way to where you're going to. I did my fair amount of research online, but I couldn't find a solution for...
0
1596
by: tanaji | last post by:
I am writing a web application. In that application I have to need reading data from server during each refresh by using sql query. Refresh time is 10 seconds. BAckend is SQL Server 2000 and frontend is ASP. And retrieved data I have to display in Image format. Therefore my application becomes very slow, so I want to read data from server at once and write this data into xml format on client machine. and I want to navigating through this...
1
3443
by: JohnMOsborn | last post by:
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In my database, however, I want to associate a particular numbered record of a field with each separate tab. In exploring my options, it looks like the best way to do this is to add a record-navigating “On Click” event to each separate page of the...
0
1904
by: in10se | last post by:
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations based on the Uri that is passed in the WebBrowserNavigatingEventArgs.Url property. If the page is requesting an external URL, I would like to open the page in a new browser window. When requesting an external page, the URL is of the form:...
0
859
by: Anthony Peterson | last post by:
I'm trying to find a solution for my webpage which uses a Datagrid of all editable rows for a spreadsheet sort of style. The tab key works great in navigating across this datagrid, but I would like to support either enter or another key for navigating downwards in the grid, but I'm not sure how. I've looked into javascript approaches, but I haven't found any answers yet. Anyone know a good way to do this (I currently have enter doing...
0
8031
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8315
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5971
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2452
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1309
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.