If you use Arthur's code, the current working directory will be the directory where your executable is. If you do not, the cwd will likely be the directory you ran the program from.
I don't care where your stuff is as long as you're using the proper path. If it is in game/data/test.png then use that.
And, it makes zero difference where your source files are. What matters is where your exe is, where you run the program from, and what the relative or absolute paths are.
There is an entry on the wiki titled troubleshooting resources. It's in the A5 tutorial somewhere. You should read it.