2021年3月24日星期三

Reading parameters from a text file c++ - easiest way

I have a parameter file that looks as follows:

    #Parameter file for Monte Carlo Simulation of traffic flow        L                       500      T                       500      N                       300      p                       0.2      vmax                      2      seed                     13      Outfilenam        TrafficMC.txt  

I am looking for the easiest way to read these parameters from a file and to assign the values to variables using c++.

https://stackoverflow.com/questions/66792415/reading-parameters-from-a-text-file-c-easiest-way March 25, 2021 at 10:55AM

没有评论:

发表评论