Originally Posted by
paper-pant
arg= argument?
So whats the 'c' and the 'v' after arg?
The '*' and the '[]' are in the appendix in the back of my book, but I don't understand their uses here.
Also what does the 'c' in cout stand for? The c'out' stands for 'output' right? I like to understand every part of the program, it's easier for me to learn so that's the reason I would like to know.
The name of a variable is completly independent from it's use, although they can be associated. argc is just a name for a variable that holds a integer. argv is in this case an array of char pointers
You could have
Code:
int main(int numberofargumentstheusertyped, char *argumentstheusertyped[]);
Both those name would be perfectly aceptable. What's important is what they hold.
So cout is just a name of another variable, or object, that outputs text.
The '*' and '[]' seem to be a bit more advanced than what you know...