Ignoring the file issue for the moment, how does the program get a single 'm' and 'a' value?
On the command line, like ./testprog 10 20
Or as a prompt from within the program
Enter m and a values
10 20
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005