Objective-c main routine, what is: int argc, const char * argv[]

后端 未结 6 1360
长情又很酷
长情又很酷 2021-02-05 07:40

What are the arguments passed into the main method of a command-line program:

int main(int argc, const char * argv[])

what is the first int mea

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 08:16

    Also, what practical use is a command-line project type, other than using it to learn obj-c i.e. to practise.

    The practical use is creating a command-line tool using code from a Framework or Application that you have written. Helpers, utilities, launch agents and daemons, all of these background processes are typically implemented as command-line tools.

提交回复
热议问题