Command Line Arguments
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 8675
Total Votes: 89 votes
Category: C and C++/General Development
Submitted on: 2008-04-16 02:18:50
Submitted By: Shekhar
Description:Recently in a couple class projects I have needed to use command line arguments, and the first time dealing with these can be a little confusing. So here is four short programs that simply output these arguments.
What I mean by this is that I need to accept a string while I am calling the program name. For example I am running my program called printString and I want it to display the text hello. So I run it like so
./printString.c hello More detail...