I recently learned the command-line argument from my book, and I understand that both of argc and argv. HOWEVER, I don't know when I will use them and for what purpose??? I appreciate if anybody can help me!!:sad:
Jump to Post
It is used when you want to control your program from the command line. Rather than promting the user for input, say for example entering a filename, you can use a switch like
-f filename.txtand that will be all the program needs for execution. The command line arguments are …
All 5 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.