This might be a bit of a silly question and I should probably know this anyway. I have tried searching for it but I have not found anything on this subject(or the more plausible reason, I have not been searching for the right things since I don't know much about this)
I am wondering how you can pass command line arguments to a c++ program on a mac in the form expected of
int main(int argc, char * argv)
I have tried using terminal, going to the directory where I have the unix executable and the 2 text documents I plan to open in this program, but this is where I'm stuck.
According to the model in C++ Primer Plus the command line should look like
wc report1 report2 report3
where wc is the executable and the others the files. In my case this would be
Chapter17 test.txt test1.txt
(real original :P) which doesn't work. Any help would be greatly appreciated.