New to Xcode can't open files in c++?

前端 未结 6 696
暖寄归人
暖寄归人 2020-11-30 19:26

I\'ve been using windows in a class I\'ve been taking but I am trying to run a basic code to figure out how to open/close/input/output from files on Xcode and the code I usu

6条回答
  •  一生所求
    2020-11-30 20:09

    As suggested by nepete, edit the scheme, but use $PROJECT_DIR as the custom working directory. Helps with moving the project around, or working in two different environments (e.g., home and office).

    BTW. $PROJECT_DIR is one of the Xcode Environment Variables, and also helps with passing file names as command line arguments to programs (settable under "Arguments" in the scheme).

提交回复
热议问题