making a simulation in c++

This is a discussion on making a simulation in c++ within the C++ Programming forums, part of the General Programming Boards category; hello, I'm a traffic engineering student. I have basic knowledge of c++ and little about advanced concepts (say, classes, composition ...

  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
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    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.)
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  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
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    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.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  5. #5
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,172
    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, 07:33 PM
  2. Celestial simulation
    By G4B3 in forum Game Programming
    Replies: 10
    Last Post: 12-08-2008, 05:00 PM
  3. Replies: 2
    Last Post: 01-13-2003, 12:28 PM
  4. Simulation
    By CodeJerk in forum C++ Programming
    Replies: 2
    Last Post: 12-09-2002, 09:56 PM
  5. spy++ simulation
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2002, 08:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21