Thread: making a simulation in c++

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    73

    making a simulation in c++

    hello,

    I'm a traffic engineering student. I have basic knowledge of c++ and little about advanced concepts (say, classes, composition & inheritance etc). anyone kindly answer me what i should know before go for making a simulation in c++ ?? say, I would like to simulate this dual-ring controller -

    http://ops.fhwa.dot.gov/publications...ges/fig7_4.jpg

    Thanks in advance for your answer.

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by chaklader View Post
    (say, classes, composition & inheritance etc)..
    Well, if you can use and apply them, you're set.

    But the nature of your question says that you can't.
    Try reading up on a bit on OOP theory and program design
    ....and make some simpler programs first. (this appears to be simple enough, though.)

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    73
    thanks for your answer. any advice how to start graphical things in c++ ? say,making a GUI that will show your simulation.

  4. #4
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by chaklader View Post
    say,making a GUI that will show your simulation.
    The GUI should, ideally, be the last thing you should think about, when doing such things.
    Try any of the cross-platform C++ toolkits.. (Qt, Gtkmm, fltk..etc) or a graphics library like SFML or SDL( or even raw OpenGL or Direct3d if you can manage it. )
    Mixing one or more of the above will be necessary, depending on what you want to show.

    I'd suggest that you forget about the GUI now and design the back end of the simulation.

  5. #5
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    manasij7479 is spot on.

    The GUI is just presentation; without the simulation working you have nothing to present.

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binomial Simulation
    By quintenmater in forum C Programming
    Replies: 12
    Last Post: 12-04-2010, 08:33 PM
  2. Celestial simulation
    By G4B3 in forum Game Programming
    Replies: 10
    Last Post: 12-08-2008, 06:00 PM
  3. Replies: 2
    Last Post: 01-13-2003, 01:28 PM
  4. Simulation
    By CodeJerk in forum C++ Programming
    Replies: 2
    Last Post: 12-09-2002, 10:56 PM
  5. spy++ simulation
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2002, 09:15 AM