Hi there, I'm trying to learn C++ on Mac or actually learn to use XCode
I have managed to get input/output with working, but after giving the full path of the file I was writing in/reading from:
My question is, how can I just give the location as data.in.
I've been studying C++ on Windows until now and it's really simple in MS VC++, you just put the name of the file and you're good to go.
I have managed to get input/output with working, but after giving the full path of the file I was writing in/reading from:
Code:
ifstream f("users/.../data.in")
My question is, how can I just give the location as data.in.
Code:
ifstream f("data.in")
Last edited: