Very basic C++ question - Shebang?
Posted on 2006-03-25
I have been slowly learning c++. For most of it, I have just been using vi, but as I am progressing to more complicated areas I decided to enlist the help of an IDE - xCode.
When I start a new main() file, it automatically inserts this:
int main (int argc, char * const argv)
All of my programs to date have had nothing in the parens. I tried to look this up in my 2 c++ books but they never really discuss this. Could someone please explain what is going on in these parens, and what these arguments (I am assuming that is what they are) are used for?
Thank you for your patience with this newbie...