CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

C++ manual for RedHat 9.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2004, 17:58
Default C++ manual for RedHat 9.0
  #1
Abhijit Tilak
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 14, 2004, 03:25
Default Re: C++ manual for RedHat 9.0
  #2
Steve
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   September 14, 2004, 09:59
Default Re: C++ manual for RedHat 9.0
  #3
Abhijit Tilak
Guest
 
Posts: n/a
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

  Reply With Quote

Old   September 14, 2004, 11:13
Default Re: C++ manual for RedHat 9.0
  #4
Hrvoje Jasak
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 14, 2004, 15:18
Default Re: C++ manual for RedHat 9.0
  #5
luiz
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 14, 2004, 15:47
Default Re: C++ manual for RedHat 9.0
  #6
Márcio Ricardo
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 15, 2004, 04:43
Default Re: C++ manual for RedHat 9.0
  #7
Praveen
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   September 15, 2004, 04:58
Default Re: C++ manual for RedHat 9.0
  #8
Steve
Guest
 
Posts: n/a
Barton and Nackman gets my vote too. It's an excellent book.
  Reply With Quote

Old   September 15, 2004, 09:29
Default Re: C++ manual for RedHat 9.0
  #9
Hrvoje Jasak
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 15, 2004, 10:25
Default Re: C++ manual for RedHat 9.0
  #10
Abhijit Tilak
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 15, 2004, 13:09
Default Re: C++ manual for RedHat 9.0
  #11
luiz
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 15, 2004, 18:34
Default Re: C++ manual for RedHat 9.0
  #12
Hrvoje Jasak
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 16, 2004, 03:44
Default Re: C++ manual for RedHat 9.0
  #13
Steve
Guest
 
Posts: n/a
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)
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sol manual sania Main CFD Forum 21 January 15, 2015 16:45
Description file for manual decomposition A.Devesa OpenFOAM Running, Solving & CFD 2 July 4, 2011 08:09
Netgen User Manual ggruber Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 March 21, 2010 04:12
CFX11.0 call intel fortran 9.0 error Lan CFX 1 July 15, 2008 05:06
Can somebody send me a Fluent 6 UDF manual?? KKLAU FLUENT 4 April 14, 2004 16:37


All times are GMT -4. The time now is 23:00.