Command Line Arguments

When Dave started talking about this:

int main (int argc, string argv [])

I had zero idea what he was going on about. Now I think I understand a little more.

This is just to allow you to add things to the command line, instead of running the program then adding things.

All about efficiency…I guess?

argc // Lets you count the characters you add. 
     // EG. Hello has 5 characters.

string argv [] // Lets you add a word 

Man… this thing [ ] still confuses me??

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s