View Single Post
Coin
#11
Apr9-09, 06:24 PM
P: 587
xcode is just calling g++ anyway, there is no harm in using it to compile.

But jtbell is right, it is definitely the case that if you run your console app from the command line rather than via xcode you will not have this uncertainty about pwd.

What should I do about the spaces in the directory?
If there are potentially spaces in the file name, you should use cin.getline instead of cin >>. cin >> will stop listening at the first whitespace character.