C++ and data base

Hi. I got task to make a simulation that will allow writing, saving and modification reports on power plants.

Output of my simulation is in following form:


Utility Gen. Year Event Voltage Capacity
625 601 2012 001 20 150,
625 601 2012 002 20 150,
625 602 2013 001 20 150,
150 201 2013 001 15 200,

Firts four columns are key. With getline() I get all of this. I need simple code that will extract line from the output that begins with unique key, then read fields and convert strings (voltage, capacity) to integers.
Topic archived. No new replies allowed.