Where does the C / C ++ eclipse generate the executable?

1

I want to use a relative to open a file to read in Eclipse C / C ++, but would need to know where eclipse runs the file to put the file in that directory and use the line of code:

ifstream input ("file.txt");

instead of:

ifstream input ("/ home / path / workspace / program / src / file.txt");

Can anyone tell me where the eclipse runs the code?

    
asked by anonymous 23.10.2016 / 01:31

0 answers