P
Pete
Hi there all you clever clever programmers.
I am a university student who's currently face deep in a group project
to create a program to control and display information from our flight
simulator. I am personally am in charge of drawing the pretty maps of
aircraft position, runway position etc.
Now over this weekend I have been coding my little heart out making a
lovely section of code that reads in various data from 2 files, one to
do with navigation beacons and one to do with runways.
But i have hit a stumbling block, my seperate functions to read in the
data from each file work perfectly : ON THEIR OWN. For some reason when
i run one of these functions (both of which use an 'ifstream' object
called 'infile' ; start with 'infile.open("beacons.txt");' and end with
'infile.close();') before the other the second time i try to use
infile.open it ends up lumping me with a get()pointer position of '-1'
! Does anyone have any clues why?
I am a university student who's currently face deep in a group project
to create a program to control and display information from our flight
simulator. I am personally am in charge of drawing the pretty maps of
aircraft position, runway position etc.
Now over this weekend I have been coding my little heart out making a
lovely section of code that reads in various data from 2 files, one to
do with navigation beacons and one to do with runways.
But i have hit a stumbling block, my seperate functions to read in the
data from each file work perfectly : ON THEIR OWN. For some reason when
i run one of these functions (both of which use an 'ifstream' object
called 'infile' ; start with 'infile.open("beacons.txt");' and end with
'infile.close();') before the other the second time i try to use
infile.open it ends up lumping me with a get()pointer position of '-1'
! Does anyone have any clues why?