11/04/05 Thanks to the students who attended today (their emails are in the file 11.04.attend.txt) Question: If I want a command line such as: ./myprog inputFile.txt or ./a.out students.data WHY use: if (argc!=2) Why not: if (argc!=1) Answer: argc counts how many arguments are on the command line. ./a.out students.data has TWO arguments not one. Two arguments are numbered argv[0] and argv[1]. Remember to #include when using ifstream objects to read data from external files.