1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C++ for Physicists

  1. Aug 14, 2012 #1
    Hi all;
    I'm a physicist _High Energy Physics Major_ and i use some computer software that is based on C++ Programming Language such as (ROOT data analysis frame work - Pythia event generator)
    and i need a reference or textbook that learns me C++ effectively, i have some choices:

    1)Object Oriented Programming in c++ by Robert Lafore.
    2)C++ Primer Plus (6th Edition) (Developer's Library) by Stephen Prata.
    3)Programming: Principles and Practice Using C++ by Bjarne Stroustrup.

    can you help me ?
  2. jcsd
  3. Aug 14, 2012 #2


    Staff: Mentor

    Re: C++ fo Physicists

    This may help as a navigation thru the maze of C++ books:



    http://stackoverflow.com/questions/189090/a-good-c-book?lq=1 [Broken]

    I remember using Bruce Eckels book Thinking in C++ some years ago and that it was well thought out.

    ALso Scott Meyers Effective C++ was great for learning what works well and what doesn't.
    Last edited by a moderator: May 6, 2017
  4. Aug 14, 2012 #3

    I like Serena

    User Avatar
    Homework Helper

    Re: C++ fo Physicists

    Just start already. ;)

    Experience teaches me that physicists never become great programmers who know all the ins and outs of a computer language.
    They don't have the patience and neatness required.

    Fortunately, physicists usually do know how to get the job done.
    Just start using the language for practical purposes and you're set to go.
    Perhaps look up a couple of examples using keywords that apply to you and combine them with the keyword C++ (yes, google recognizes it as a separate keyword).
  5. Aug 14, 2012 #4
    Re: C++ fo Physicists

    thank you for your replies,

    I understand from your words that the concepts of ​​programming may not be useful for me, it may be a later a stage, so i must read a practical book such as the 2nd one ( C++ Primer).
  6. Aug 14, 2012 #5

    I like Serena

    User Avatar
    Homework Helper

    Re: C++ fo Physicists

    The standard work is "The C++ Programming Language" by Bjarne Stroustrup who invented the language.
    That's the one I recommend to start with.

    "Object Oriented" comes later imo.
    That's what you will need if you want to scale your work up.
  7. Aug 14, 2012 #6
    Re: C++ fo Physicists

    so this will be useful and effective for physicists
  8. Aug 14, 2012 #7

    I like Serena

    User Avatar
    Homework Helper

    Re: C++ fo Physicists

  9. Aug 14, 2012 #8

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook