If you have a.out and two files called file1.txt and file2.txt in your current directory, (confirm by ls as suggested by mk27). Then this should work:
./a.out file1.txt file2.txt
This...
Type: Posts; User: Subsonics
If you have a.out and two files called file1.txt and file2.txt in your current directory, (confirm by ls as suggested by mk27). Then this should work:
./a.out file1.txt file2.txt
This...
So, it looks like your first file is not valid, you can confirm this by doing:
echo $?
after you have tried the program since you return unique numbers on each test.
Could be anything...