![]() |
|
#1
|
||||
|
||||
main() argumentsWhile struggling through the latest homework problem, one of the bits of code I got had this in the main.cc file:
CPP / C++ / C Code:
covered in my book (yet). I did get a copy of "C++ for Dummies", and this is shown in the section on pointers, but it doesn't explain it very well. All it pretty much says is that argc is the arguments given to the program and argv[] is the array of pointers to these arguments. So what does that mean to me, and when would I use it? __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
||||
|
#2
|
|||
|
|||
|
There is a tutorial in the forum about command line argument which explains it in good details.
Thanks, |
|
#3
|
||||
|
||||
|
Ah, didn't recognize that it was the same thing when I scanned it. Thanks for update.
![]() __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having problem in calling functions inthe main | harsha | C Programming Language | 1 | 13-Oct-2004 00:05 |
| Problems returning to main and closing the current box | warny_maelstrom | C Programming Language | 4 | 28-Apr-2004 22:54 |
| Another problem dealing with main() and driver function | tommy69 | C Programming Language | 4 | 20-Mar-2004 19:46 |
| regarding main method | jerry | C++ Forum | 18 | 09-Mar-2004 18:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The