newbie lost... kinda like paradise lost but less demon
new round these parts, not sure if i'm breaking any forum rules posting here, so i'll just go ahead and ask my question and trust that if i'm in the wrong place then a moderator shall rollok me.
we'll im (trying) to write a C++ script within the GEANT4 framework,
its pretty much the same apart from renaming stuff with a G4 infront and a whole load of librarys
my problem is:
(bear in mind that im not very good at programming to begin with)
Need to read in a file (Coordinates)
Coordinates is comprised of three columns of size N, columns are separated by tab.
occasionally within this file there is a discontinuity and there is a blank line at a random place.
i wish to read these lines (column1 column2 column3) into an array of size [n]. until the blank line
perform OPERATION on this array and then out put "results for set"
then resume sweeping and recording the data from Coordinates until the next blank line.
repeat ad inifinitum throughout Coordinates adding the outpout for each set into "results for set" withoutover writing
until the end of Coordinates
is this too complicated or tedious for me to ask?
love from Manchester