int main(int argc, const char * argv[]) { if (argc != 2){ cout << "Usage: ./Sort <file_name>" << endl; return EXIT_FAILURE; } //and so on } How can I run this program using Xcode? I have made an Xcode project, this .cpp file is part of it.
How can I pass an argument to the program when I run it using Xcode.