CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   C++ manual for RedHat 9.0 (https://www.cfd-online.com/Forums/main/8081-c-manual-redhat-9-0-a.html)

Abhijit Tilak September 13, 2004 17:58

C++ manual for RedHat 9.0
 
Hi all,

I am converting my FEM code in C to C++. I am new to C++. So,I am looking for C++ manual for RedHat 9.0, similar to the one that exist for C...( the usual one where you type "man" and then keyword...you guys know what I am talking about!!).I searched the redhat network,other forums for clues, could'nt find any! BTW does it come with redhat or i need different shell to access it, if it does ???

Thanks,

Abhijit

Steve September 14, 2004 03:25

Re: C++ manual for RedHat 9.0
 
When I type in "man g++" on one of our RH9 machines, I get the combined manual page for C and C++:

gcc - GNU project C and C++ compiler

There are C++ Language Options listed after the C Language Options.

Or are you looking for a language reference?

Abhijit Tilak September 14, 2004 09:59

Re: C++ manual for RedHat 9.0
 
Hi Steve,

Thanks. you are right! I am probably lookin for language reference. If I type " man cout" it says " No entry for cout" . Is this something that I could download and install ??

Thanks,

Abhijit


Hrvoje Jasak September 14, 2004 11:13

Re: C++ manual for RedHat 9.0
 
Looks to me as if you need a C++ book, not the manual. As for the details of the C++ compiler you are using, have a look at

http://gcc.gnu.org/

The official language reference is:

@Misc{C++Standard, title = {Programming Languages -- C++}, howpublished = {ISO/IEC Standard 14822:1998}, year = 1998 }

There's lots of books (in a more user-friendly format); I'll leave the choice to you.

Hrv

luiz September 14, 2004 15:18

Re: C++ manual for RedHat 9.0
 
Hi Hrvoje, And which book on C++ do you think we (c++ newbbies) should go for? Is there any good one online? I have read some books on C++, but I still miss something about good practice and good policies, code design strattegies, best (more efficient) ways of doing that, etc... My main goal is to be able to understand better and develop new applications using FOAM. Best regards, Luiz

Márcio Ricardo September 14, 2004 15:47

Re: C++ manual for RedHat 9.0
 
There is a very good C++ online manual on informIT (www.informit.com). The complete address is http://www.informit.com/guides/guide.asp?g=cplusplus.

Márcio

Praveen September 15, 2004 04:43

Re: C++ manual for RedHat 9.0
 
For scientific computing in C++ see the following

G. Buzzi-Ferraris: Scientific C++ (Addison-Wesley 1993)

and

Scientific and Engineering C++: An Introduction with Advanced Techniques and Examples * By John J. Barton, Lee R. Nackman.


Steve September 15, 2004 04:58

Re: C++ manual for RedHat 9.0
 
Barton and Nackman gets my vote too. It's an excellent book.

Hrvoje Jasak September 15, 2004 09:29

Re: C++ manual for RedHat 9.0
 
Hi Luiz,

I've got my own preferences which may not be appropriate to all - depends how you like to work. The basic advice for FOAM is to get a really big book :) - FOAM uses (almost) all features of the language. Pay particular attention to virtual functions and templates.

Here's a few references:

Basic C++:

Stroustrup: The C++ Programming Language (third edition)

Meyers: Effective C++ (second edition)

Templating:

Vandervoorde: C++ Templates

Josuttis: The C++ Standard Library

Language standard (useful for arguing with compiler writers):

Programming Languages - C++: ISO/IEC Standard 14822:1998

I also know that

Lippman: C++ Primer

is a good book, but it will teach you the basics and it is not a complete reference (you need one of those). Finally, for my taste FOAM is a very good set of (relevant) examples of C++ usage by some of the best programmers I know, so when you're stuck it is always a good idea to look through the source to see how other people have solved similar problems. I have personally learned C++ by learning FOAM.

Enjoy,

Hrv

Abhijit Tilak September 15, 2004 10:25

Re: C++ manual for RedHat 9.0
 
Hello Hrv,

Thanks for your response. I have a old C++ book (How to Program C++ Deitel & Deitel 1997). However I found many simple programs given in the book don't even compile. I think the book was meant for Windows! (I bought old version, bcos new books in US cost arm and leg).

I use c++/g++. I got stuck with simple things... For eg.. I found out the compiler gives an error message if I include the extension of the header file, as given in my book. Also unlike in the book, I found that I need to state that I am using standard namespace everytime...

Do you know any uptodate book/weblink for C++ ?

Can you please pass on the weblink for FOAM ?

Thanks,

Abhijit

luiz September 15, 2004 13:09

Re: C++ manual for RedHat 9.0
 
I can give you the weblink for FOAM www.nabla.co.uk I think it is really a fantastic open source code to those who want to experiment new ideas in CFD or Continuum Mechanics. I am enjoying a lot. Give it a try! Best regards, Luiz

Hrvoje Jasak September 15, 2004 18:34

Re: C++ manual for RedHat 9.0
 
Heya,

You need a newer book - the standard (in 1998) has introduced namespaces and new "system" file inclusion syntax. Off the top of my head, I don't know any C++ resources on the web but have a go at Google, I am sure you'll find some tutorials, notes, examples and similar.

The FOAM web link (thanks, Luiz!) is http://www.nabla.co.uk

Hrv

Steve September 16, 2004 03:44

Re: C++ manual for RedHat 9.0
 
I just googled for "C++ tutorial". The first few hits looked pretty promising. If I were a newbie, I'd spend some time with them and g++ (version 3.x)


All times are GMT -4. The time now is 02:24.