Heya fellow programmers
I just ran into these two little variables that are used by convention for some time. argc and argv. How does one get to see the effects of this when running windows Me. For instance look at this program i pasted here below.
#include <iostream.h>
int main(int argc, char *argv[])
{
if(argc != 2) {
cout << "you forgot to type your name";
return 1;
}
cout << "Hello " << argv[1] << '\n';
return 0;
}
when i execute this tricky one all i get is the if statement output. Can someone just enlighten me a little please.
Have a nice day.
zbap