The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
Please vote in the Forum Structure Poll. Polling will close at 2PM EST on January 21, 2025.

I need a C++ (Tutorial) Book -

ED!ED! Registered User regular
Free would be great. The only thing I'll be doing with it (the language not the book) is setting up simulations (at most); though I'm not opposed to transitioning most of program heavy lifting to it. Any recommendations would be appreciated.

Also maybe a guide to Linux (since that seems to be what a lot of people are running this in; not really sure if that is REALLY going to make much of a difference in the long term).

"Get the hell out of me" - [ex]girlfriend

Posts

  • tinwhiskerstinwhiskers Registered User regular
    I guess I'm(and maybe everyone since no ones responded) unsure of what you mean by setting up simulation?

    6ylyzxlir2dz.png
  • halkunhalkun Registered User regular
    edited July 2013
    Yes, this seems strange. C++ isn't a "plugin" or anything like that. You will be writing your whole simulation in it. However, this is an ebook I found on http://www.cplusplus.com that might be useful.

    halkun on
  • RendRend Registered User regular
    What kind of simulations are you looking to run? There are also languages that are designed just for simulation.

  • ED!ED! Registered User regular
    edited July 2013
    Rend wrote: »
    What kind of simulations are you looking to run? There are also languages that are designed just for simulation.

    Simulation as in "Model outbreak of acute disease X by introducing k infectives into a population of size N with n strata with mixing patterns j, etc. etc." Writing the code to do this (and allow for user input to adjust for their disease of interest) would of course be on my part.

    There are already programs that can run dynamical system simuls (NetLogo for instance) but I'm not really interested in those.

    ED! on
    "Get the hell out of me" - [ex]girlfriend
  • SaammielSaammiel Registered User regular
    Are you coming from a programming background already? And if so, how robust is it? If you can avoid pointer math and template hijinks, C++ isn't terribly different in typical use from Java/C#/other C-derived languages.

    If you have that background, familiarizing yourself with any of the basic 'hello world' type tutorials followed by visits to cplusplus.com for references to the Standard Template Library and the C++ FAQ is probably sufficient.

    If you lack such a background I'd probably recomend Thinking in C++.

    Is there some reason you want to use C++? I personally am not a language purist and have used C++ a lot over the years, but it has the potential to go awry for people who aren't used to its particular quirks. And managed languages have come a long way towards making up most or all of the speed advantage C++ used to have.

  • k-mapsk-maps I wish I could find the Karnaugh map for love. 2^<3Registered User regular
    ED! wrote: »
    Rend wrote: »
    What kind of simulations are you looking to run? There are also languages that are designed just for simulation.

    Simulation as in "Model outbreak of acute disease X by introducing k infectives into a population of size N with n strata with mixing patterns j, etc. etc." Writing the code to do this (and allow for user input to adjust for their disease of interest) would of course be on my part.

    There are already programs that can run dynamical system simuls (NetLogo for instance) but I'm not really interested in those.

    I've written epidemiological simulations and have even developed a neat app for them.

    Why do you want to use C++? Is it purely for efficiency? If not, I'd strongly suggest surveying other languages. I'd also consider using a modern language with native "hooks" into just pure C if heavy lifting is really an issue.

Sign In or Register to comment.